Skip to main content

upload_image_linear

Function upload_image_linear 

Source
pub fn upload_image_linear(
    device: &Device,
    queue: &Queue,
    label: &str,
    img: &ImageBuffer,
) -> Option<TextureView>
Expand description

Upload a 2D ImageBuffer (all mips) as linear RGBA8, the way the D3D9 renderer samples it.