|
Ultralight C API 2.0.0
|
#include <AppCore/CAPI/CAPI_GPUDriverAsync.h>
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). | |
| ULGPUResourceAction action |
What to do.
| unsigned int flags |
A combination of ULGPUTextureFlags values (Create).
| ULBitmapFormat format |
The pixel format.
| unsigned int height |
The height, in pixels (Create).
| unsigned int id |
The texture.
| ULGPUMemory pixels |
The pixel data (can be empty).
| ULIntRect rect |
The region written (Update).
| size_t row_pitch |
The bytes between rows in pixels.
| unsigned int width |
The width, in pixels (Create).