Skip to main content

cmd_dispatch

Function cmd_dispatch 

Source
pub unsafe fn cmd_dispatch(
    device: &Device,
    command_buffer: CommandBuffer,
    group_count_x: u32,
    group_count_y: u32,
    group_count_z: u32,
) -> Result<(), CallError>
Expand description

Record a compute dispatch into a command buffer.

§Errors

Returns CallError::MissingCommand if vkCmdDispatch was not loaded (extension not enabled or unsupported device).

§Safety

command_buffer must be in the recording state. group_count_* must not exceed VkPhysicalDeviceLimits::max_compute_work_group_count.

Khronos reference: vkCmdDispatch