docs
Loading...
Searching...
No Matches
ULGPUTextureOp

#include <AppCore/CAPI/CAPI_GPUDriverAsync.h>

Overview

A texture operation.

Create: pixels holds the whole texture (empty for a render target or an empty bitmap). Apply it when you create the texture (an immutable or block-compressed texture can only get its data then).

Update: pixels holds rect of the texture. For a block-compressed format, rect is block-aligned and row_pitch is the bytes between rows of blocks.

Public Attributes

unsigned int id
 The texture.
ULGPUResourceAction action
 What to do.
unsigned int width
 The width, in pixels (Create).
unsigned int height
 The height, in pixels (Create).
ULBitmapFormat format
 The pixel format.
unsigned int flags
 A combination of ULGPUTextureFlags values (Create).
ULIntRect rect
 The region written (Update).
size_t row_pitch
 The bytes between rows in pixels.
ULGPUMemory pixels
 The pixel data (can be empty).

Member Data Documentation

◆ action

What to do.

◆ flags

unsigned int flags

A combination of ULGPUTextureFlags values (Create).

◆ format

The pixel format.

◆ height

unsigned int height

The height, in pixels (Create).

◆ id

unsigned int id

The texture.

◆ pixels

ULGPUMemory pixels

The pixel data (can be empty).

◆ rect

ULIntRect rect

The region written (Update).

◆ row_pitch

size_t row_pitch

The bytes between rows in pixels.

◆ width

unsigned int width

The width, in pixels (Create).


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