![]() |
Ultralight C++ API 1.4.0
|
#include <Ultralight/platform/GPUDriver.h>
A command to execute on the GPU.
This structure describes a command to be executed on the GPU.
Commands are dispatched to the GPU driver asynchronously via GPUDriver::UpdateCommandList(), the GPU driver should consume these commands and execute them at an appropriate time.
Public Attributes | |
| CommandType | command_type |
| The type of command to dispatch. | |
| GPUState | gpu_state |
| The current GPU state. | |
| uint32_t | geometry_id |
| The geometry ID to bind. (used with CommandType::DrawGeometry) | |
| uint32_t | indices_count |
| The number of indices. (used with CommandType::DrawGeometry) | |
| uint32_t | indices_offset |
| The index to start from. (used with CommandType::DrawGeometry) | |
| CommandType command_type |
The type of command to dispatch.
| uint32_t geometry_id |
The geometry ID to bind. (used with CommandType::DrawGeometry)
| GPUState gpu_state |
The current GPU state.
| uint32_t indices_count |
The number of indices. (used with CommandType::DrawGeometry)
| uint32_t indices_offset |
The index to start from. (used with CommandType::DrawGeometry)