pub unsafe fn cmd_push_constants(
device: &Device,
command_buffer: CommandBuffer,
layout: PipelineLayout,
stage_flags: ShaderStageFlags,
offset: u32,
values: &[u8],
) -> Result<(), CallError>Expand description
Call vkCmdPushConstants using this context’s cached function pointer.
§Errors
Reports a missing command, invalid slice lengths/counts or a native error.
§Safety
The context and all handles must be live and belong to the same Vulkan
implementation/device. Meet vkCmdPushConstants valid usage, enabled API/extension/feature,
pointer-chain lifetime, callback compatibility and host/GPU synchronization
requirements. Native resources require explicit destruction after completion.
Byte slices determine native byte counts. The caller must also satisfy the command’s data alignment, format, size-multiple and stride requirements; a byte slice alone does not establish those properties.