pub unsafe fn cmd_update_buffer(
device: &Device,
command_buffer: CommandBuffer,
dst_buffer: Buffer,
dst_offset: DeviceSize,
data: &[u8],
) -> Result<(), CallError>Expand description
Call vkCmdUpdateBuffer 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 vkCmdUpdateBuffer 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.