pub fn apply_uniforms(stage: ShaderStage, ub_index: u32, data: &[u8]) {
    let data = Range {
        ptr: data.as_ptr() as *mut _,
        size: (size_of::<u8>() * data.len()) as _,
    };
    unsafe {
        ffi::sg_apply_uniforms(stage.to_ffi(), ub_index as i32, &data);
    }
}
/// Applies uniform data to shader
///
/// * `ub-index`: uniform block index
Applies uniform data to shader
`ub-index`: uniform block index
Applies uniform data to shader ` ub - index ` : uniform block index
pub fn apply_uniforms(stage: ShaderStage, ub_index: u32, data: &[u8]) {
    let data = Range {
        ptr: data.as_ptr() as *mut _,
        size: (size_of::<u8>() * data.len()) as _,
    };
    unsafe {
        ffi::sg_apply_uniforms(stage.to_ffi(), ub_index as i32, &data);
    }
}
pub fn apply_uniforms ( stage : ShaderStage , ub_index : u32 , data : & [ u8 ] ) { let data = Range { ptr : data . as_ptr ( ) as * mut _ , size : ( size_of :: < u8 > ( ) * data . len ( ) ) as _ , } ; unsafe { ffi :: sg_apply_uniforms ( stage . to_ffi ( ) , ub_index as i32 , & data ) ; } }
Applies uniform data to shader
 `ub-index`: uniform block index
Applies uniform data to shader ` ub - index ` : uniform block index
stage
ShaderStage
ub_index
u32
data
&[u8]
stage
ShaderStage
ub_index
u32
data
&[u8]