Loading...
Searching...
No Matches
ULCommand

#include <Ultralight/CAPI/CAPI_GPUDriver.h>

Overview

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 ULGPUDriver::update_command_list, the GPU driver should consume these commands and execute them at an appropriate time.

See also
ULCommandList

Public Attributes

unsigned char command_type
 The type of command to dispatch.
 
ULGPUState gpu_state
 The current GPU state.
 
unsigned int geometry_id
 The geometry ID to bind. (used with kCommandType_DrawGeometry)
 
unsigned int indices_count
 The number of indices. (used with kCommandType_DrawGeometry)
 
unsigned int indices_offset
 The index to start from. (used with kCommandType_DrawGeometry)
 

Member Data Documentation

◆ command_type

unsigned char command_type

The type of command to dispatch.

◆ geometry_id

unsigned int geometry_id

The geometry ID to bind. (used with kCommandType_DrawGeometry)

◆ gpu_state

ULGPUState gpu_state

The current GPU state.

◆ indices_count

unsigned int indices_count

The number of indices. (used with kCommandType_DrawGeometry)

◆ indices_offset

unsigned int indices_offset

The index to start from. (used with kCommandType_DrawGeometry)


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