upload_rgba8_texture

Function upload_rgba8_texture 

Source
pub fn upload_rgba8_texture(
    ctx: &GpuContextHandle,
    width: u32,
    height: u32,
    data: &[u8],
) -> Result<GpuImageHandle, GpuError>
Expand description

Convenience helper for uploading an RGBA8 texture with basic size/length validation.