Describes the properties needed to create a GPU buffer.
-
debugName: This label can be applied as debug label for gpu debugging.
-
usage: Bits describing the intended usage and properties of the buffer.
-
byteSize: Length of buffer in bytes
-
vertexStride: The size of a vertex in a vertex buffer. This property is only required for vertex buffers.
-
initialData: CPU pointer to initialization data of buffer. The memory is consumed immediately during the creation of the HgiBuffer. The application may alter or free this memory as soon as the constructor of the HgiBuffer has returned.
Definition at line 62 of file buffer.h.