Loading...
Searching...
No Matches
Command

#include <Ultralight/platform/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 GPUDriver::UpdateCommandList(), the GPU driver should consume these commands and execute them at an appropriate time.

See also
CommandList

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)
 

Member Data Documentation

◆ command_type

CommandType command_type

The type of command to dispatch.

◆ geometry_id

uint32_t geometry_id

The geometry ID to bind. (used with CommandType::DrawGeometry)

◆ gpu_state

GPUState gpu_state

The current GPU state.

◆ indices_count

uint32_t indices_count

The number of indices. (used with CommandType::DrawGeometry)

◆ indices_offset

uint32_t indices_offset

The index to start from. (used with CommandType::DrawGeometry)


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