docs
Loading...
Searching...
No Matches
ULGPUReadbackOp

#include <AppCore/CAPI/CAPI_GPUDriverAsync.h>

Overview

A request to copy pixels out of a render target.

Copy rect of the texture into destination, with row 0 being the top row of rect, then call ulGPUDriverAsyncCompleteReadback() with request_id once the bytes are there.

If destination has kULGPUMemoryUsage_GPUWrite, your GPU can copy into it directly; otherwise copy through your own staging memory.

Public Attributes

unsigned int request_id
 Pass this to ulGPUDriverAsyncCompleteReadback() (never reused).
unsigned int texture_id
 The render target's texture.
ULIntRect rect
 The region to copy, in texture pixels.
ULBitmapFormat format
 The pixel format to write (kBitmapFormat_BGRA8_UNORM_SRGB).
size_t row_pitch
 The bytes between rows in destination.
ULGPUMemory destination
 Where to write the pixels.

Member Data Documentation

◆ destination

ULGPUMemory destination

Where to write the pixels.

◆ format

The pixel format to write (kBitmapFormat_BGRA8_UNORM_SRGB).

◆ rect

ULIntRect rect

The region to copy, in texture pixels.

◆ request_id

unsigned int request_id

Pass this to ulGPUDriverAsyncCompleteReadback() (never reused).

◆ row_pitch

size_t row_pitch

The bytes between rows in destination.

◆ texture_id

unsigned int texture_id

The render target's texture.


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