Kanzi 4.1.0
kanzi::GPUBuffer::CreateInfo Struct Reference

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.
 

Detailed Description

CreateInfo The create info for creating a GPUBuffer.

Since
Kanzi 4.1.0

Member Data Documentation

◆ usage

gfx::BufferUsageFlag kanzi::GPUBuffer::CreateInfo::usage

The buffer usage flag for the buffer.

◆ cpuAccess

gfx::AccessFlag kanzi::GPUBuffer::CreateInfo::cpuAccess

The cpu access flag for the buffer.

◆ format

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

size_t kanzi::GPUBuffer::CreateInfo::size

The size for the buffer.

◆ initialData

span<const byte> kanzi::GPUBuffer::CreateInfo::initialData

The initial data of the buffer.

◆ handle

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.


The documentation for this struct was generated from the following file: