GPU functions.
More...
Go to the source code of this file.
|
result_t | gpu_initialize () |
| Initialize GPU.
|
|
result_t | gpu_buffer_initialize (gpu_buffer_t *gpu_b, void *addr, size_t size, uint32_t heapmask, uint32_t flags, uint32_t alignment, uint8_t kind) |
| Initializes a GPU buffer with the args provided. More...
|
|
result_t | gpu_buffer_destroy (gpu_buffer_t *gpu_b, uint64_t *refcount, uint32_t *flags) |
| Destroys a GPU buffer. More...
|
|
result_t | gpu_buffer_get_id (gpu_buffer_t *gpu_b, uint32_t *id) |
| Get a GPU buffer's ID. More...
|
|
result_t | gpu_buffer_initialize_from_id (gpu_buffer_t *gpu_b, uint32_t id) |
| Create a structure to access an existing GPU buffer from a given ID. More...
|
|
result_t | gpu_wait_fence (gpu_fence_t *fence, uint32_t timeout) |
| Waits on a fence to complete. More...
|
|
void | gpu_finalize () |
| Finalize GPU.
|
|
Destroys a GPU buffer.
- Parameters
-
gpu_b | GPU buffer to destroy |
Get a GPU buffer's ID.
- Parameters
-
gpu_b | GPU buffer |
id | ID of GPU buffer |
result_t gpu_buffer_initialize |
( |
gpu_buffer_t * |
gpu_b, |
|
|
void * |
addr, |
|
|
size_t |
size, |
|
|
uint32_t |
heapmask, |
|
|
uint32_t |
flags, |
|
|
uint32_t |
alignment, |
|
|
uint8_t |
kind |
|
) |
| |
Initializes a GPU buffer with the args provided.
- Parameters
-
gpu_b | GPU buffer |
addr | Address of backing memory |
size | Size of buffer to create |
heapmask | Heapmask for buffer |
flags | Flags for buffer |
alignment | Alignment of buffer |
kind | Kind of buffer |
Create a structure to access an existing GPU buffer from a given ID.
- Parameters
-
gpu_b | GPU buffer structure to initialize |
id | ID of gpu buffer |
Waits on a fence to complete.
- Parameters
-
fence | Fence to wait for completion on |