docs
Loading...
Searching...
No Matches
ULGPUGeometryOp

#include <AppCore/CAPI/CAPI_GPUDriverAsync.h>

Overview

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).

Member Data Documentation

◆ action

What to do.

◆ format

The vertex format (Create).

◆ id

unsigned int id

The geometry.

◆ index_capacity

unsigned int index_capacity

The index buffer size, in bytes (Create).

◆ index_offset

unsigned int index_offset

Where to write indices, in bytes.

◆ indices

ULGPUMemory indices

The index data to write (can be empty).

◆ vertex_capacity

unsigned int vertex_capacity

The vertex buffer size, in bytes (Create).

◆ vertex_offset

unsigned int vertex_offset

Where to write vertices, in bytes.

◆ vertices

ULGPUMemory vertices

The vertex data to write (can be empty).


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