|
Ultralight C API 2.0.0
|
#include <AppCore/CAPI/CAPI_GPUDriverAsync.h>
User-defined allocator for the memory that frames hold.
The driver copies texture and geometry data into this memory, and asks for readback memory from it. You can use this to have the driver write straight into memory your GPU reads (eg, a persistently mapped upload buffer), so your render thread doesn't need another copy.
Without an allocator, the driver uses its own CPU memory.
Public Attributes | |
| void * | user_data |
| Passed to every callback below (can be NULL). | |
| ULGPUAllocatorAllocateCallback | allocate |
| Required. If NULL, the allocator is ignored. | |
| ULGPUAllocatorAlignmentCallback | texture_row_alignment |
| The row alignment your graphics API needs to copy texture rows out of memory of a certain usage. | |
| ULGPUAllocatorAlignmentCallback | texture_offset_alignment |
| The offset alignment your graphics API needs to copy a texture out of memory of a certain usage. | |
| ULGPUAllocatorAllocateCallback allocate |
Required. If NULL, the allocator is ignored.
| ULGPUAllocatorAlignmentCallback texture_offset_alignment |
The offset alignment your graphics API needs to copy a texture out of memory of a certain usage.
May be NULL (1).
| ULGPUAllocatorAlignmentCallback texture_row_alignment |
The row alignment your graphics API needs to copy texture rows out of memory of a certain usage.
May be NULL (1).
| void* user_data |
Passed to every callback below (can be NULL).