|
Ultralight C API 2.0.0
|
#include <AppCore/CAPI/CAPI_GPUDriverAsync.h>
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. | |
| ULGPUMemory destination |
Where to write the pixels.
| ULBitmapFormat format |
The pixel format to write (kBitmapFormat_BGRA8_UNORM_SRGB).
| ULIntRect rect |
The region to copy, in texture pixels.
| unsigned int request_id |
Pass this to ulGPUDriverAsyncCompleteReadback() (never reused).
| size_t row_pitch |
The bytes between rows in destination.
| unsigned int texture_id |
The render target's texture.