CreateInfo The create info for creating a GPUBuffer. More...
#include <kanzi/core.ui/graphics/gpu_buffer.hpp>
Public Attributes | |
| gfx::AccessFlag | cpuAccess |
| The cpu access flag for the buffer. | |
| gfx::Format | format |
| The format of the buffer. | |
| gfx::BufferHandleGuard | handle |
| The gfx handle for the buffer. If this is invalid, a buffer will be created with the parameters in this GPUBufferCreateInfo. | |
| span< const byte > | initialData |
| The initial data of the buffer. | |
| size_t | size |
| The size for the buffer. | |
| gfx::BufferUsageFlag | usage |
| The buffer usage flag for the buffer. | |
CreateInfo The create info for creating a GPUBuffer.
| gfx::BufferUsageFlag kanzi::GPUBuffer::CreateInfo::usage |
The buffer usage flag for the buffer.
| gfx::AccessFlag kanzi::GPUBuffer::CreateInfo::cpuAccess |
The cpu access flag for the buffer.
| gfx::Format kanzi::GPUBuffer::CreateInfo::format |
The format of the buffer.
For structured data, this should be gfx::Format::None. For data such as Vector3s, it should be a format that corresponds to the given data. format is useful for storing vertex or index buffer data that you want to read or write as a shader resource.
| size_t kanzi::GPUBuffer::CreateInfo::size |
The size for the buffer.
| gfx::BufferHandleGuard kanzi::GPUBuffer::CreateInfo::handle |
The gfx handle for the buffer. If this is invalid, a buffer will be created with the parameters in this GPUBufferCreateInfo.