ezGALBufferVulkan
created with ezGALBufferUsageFlags::Transient
will allocate scratch memory from this pool which will last until the end of the frame.
More...
#include <UniformBufferPoolVulkan.h>
|
| ezUniformBufferPoolVulkan (ezGALDeviceVulkan *pDevice) |
|
void | Initialize () |
|
void | DeInitialize () |
|
void | EndFrame () |
|
void | BeforeCommandBufferSubmit () |
|
BufferUpdateResult | UpdateBuffer (const ezGALBufferVulkan *pBuffer, ezArrayPtr< const ezUInt8 > data) |
| Needs to be called each from for a buffer before it can be used. Can be called multiple times per frame. GetBuffer will always return a reference to the last UpdateBuffer content.
|
|
const vk::DescriptorBufferInfo * | GetBuffer (const ezGALBufferVulkan *pBuffer) const |
|
ezGALBufferVulkan
created with ezGALBufferUsageFlags::Transient
will allocate scratch memory from this pool which will last until the end of the frame.
◆ BufferUpdateResult
Enumerator |
---|
OffsetChanged | The offset of the current buffer was moved forward.
|
DynamicBufferChanged | The current buffer was depleted and a new buffer was started.
|
◆ GetBuffer()
const vk::DescriptorBufferInfo * ezUniformBufferPoolVulkan::GetBuffer |
( |
const ezGALBufferVulkan * |
pBuffer | ) |
const |
Access the descriptor info for the given buffer.
- Parameters
-
pBuffer | The buffer for which previously scratch memory was allocated for. |
- Returns
- Pointer to the descriptor info.
◆ UpdateBuffer()
Needs to be called each from for a buffer before it can be used. Can be called multiple times per frame. GetBuffer will always return a reference to the last UpdateBuffer content.
- Parameters
-
pBuffer | The buffer to allocate scratch memory for. |
data | The data of the buffer. Must be the size of the entire buffer. |
- Returns
- Returns whether a new pool needed to be created.
The documentation for this class was generated from the following files:
- /home/runner/work/ezEngine/ezEngine/Code/Engine/RendererVulkan/Pools/UniformBufferPoolVulkan.h
- /home/runner/work/ezEngine/ezEngine/Code/Engine/RendererVulkan/Pools/Implementation/UniformBufferPoolVulkan.cpp