wgpu_core::command::compute_ffi

Function wgpu_compute_pass_set_push_constant

Source
#[no_mangle]
pub unsafe extern "C" fn wgpu_compute_pass_set_push_constant(
    pass: &mut ComputePass,
    offset: u32,
    size_bytes: u32,
    data: *const u8,
)
Expand description

ยงSafety

This function is unsafe as there is no guarantee that the given pointer is valid for size_bytes bytes.