Skip to content

Commit

Permalink
move ring buffer to graphics allocator
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Pollind <[email protected]>
  • Loading branch information
pollend committed Jan 5, 2024
1 parent 81d9d7d commit a7d80c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HPL2/include/graphics/GraphicsAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ namespace hpl {
static constexpr uint32_t ParticleVertexBufferSize = 0xf << 12;
static constexpr uint32_t ParticleIndexBufferSize = 0xf << 12;

static constexpr uint32_t ImmediateVertexBufferSize = 1;
static constexpr uint32_t ImmediateIndexBufferSize = 1;
static constexpr uint32_t ImmediateVertexBufferSize = 0xf << 14;
static constexpr uint32_t ImmediateIndexBufferSize = 0xf << 14;

GPURingBufferOffset allocTransientVertexBuffer(uint32_t size);
GPURingBufferOffset allocTransientIndexBuffer(uint32_t size);
Expand Down
1 change: 1 addition & 0 deletions HPL2/sources/gui/GuiSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ namespace hpl {
}

}
addUniformGPURingBuffer(pipeline.Rend(), sizeof(UniformBlock) * MAX_GUI_DRAW_CALLS, &GuiUniformRingBuffer, true);
}

void exitGui() {
Expand Down

0 comments on commit a7d80c7

Please sign in to comment.