Context/Command List

Context creation

hk_context_t hkgfx_context_create(hk_device_t *device)

Creates a command buffer object.

void hkgfx_context_destroy(hk_device_t *device, hk_context_t ctx)

Destroys a command buffer object.

void hkgfx_context_reset(hk_device_t *device, hk_context_t ctx)

Resets the command buffer.

void hkgfx_context_begin(hk_context_t ctx)

Starts acquiring commands inside the command buffer.

void hkgfx_context_end(hk_context_t ctx)

Stops acquiring commands inside the command buffer.

Context submission

struct hk_gfx_submit_params

Context submission parameters data structure.

Public Members

hk_context_t context
hk_fence_t fence
hk_semaphore_t signal
hk_semaphore_t wait
hk_stage_flag_e wait_flag
void hkgfx_device_submit(hk_device_t *device, hk_gfx_submit_params *params)

Submits a command buffer to a device.

void hkgfx_device_wait(hk_device_t *device)

Stalls the device to wait for all pending commands.