|
Ultralight C API 2.0.0
|
#include <AppCore/CAPI/CAPI_GPUDriverAsync.h>
A geometry operation.
Create: allocate vertex_capacity and index_capacity bytes, then write the data as Update does.
Create and Update: write vertices at byte vertex_offset and indices at byte index_offset. Bytes not written keep their previous contents. The frame's commands only use bytes written by this frame or an earlier one.
Public Attributes | |
| unsigned int | id |
| The geometry. | |
| ULGPUResourceAction | action |
| What to do. | |
| ULVertexBufferFormat | format |
| The vertex format (Create). | |
| unsigned int | vertex_capacity |
| The vertex buffer size, in bytes (Create). | |
| unsigned int | index_capacity |
| The index buffer size, in bytes (Create). | |
| unsigned int | vertex_offset |
| Where to write vertices, in bytes. | |
| unsigned int | index_offset |
| Where to write indices, in bytes. | |
| ULGPUMemory | vertices |
| The vertex data to write (can be empty). | |
| ULGPUMemory | indices |
| The index data to write (can be empty). | |
| ULGPUResourceAction action |
What to do.
| ULVertexBufferFormat format |
The vertex format (Create).
| unsigned int id |
The geometry.
| unsigned int index_capacity |
The index buffer size, in bytes (Create).
| unsigned int index_offset |
Where to write indices, in bytes.
| ULGPUMemory indices |
The index data to write (can be empty).
| unsigned int vertex_capacity |
The vertex buffer size, in bytes (Create).
| unsigned int vertex_offset |
Where to write vertices, in bytes.
| ULGPUMemory vertices |
The vertex data to write (can be empty).