Skip to main content

render_texture

Function render_texture 

Source
pub async fn render_texture(
    device: &Device,
    queue: &Queue,
    renderer: &MeshRenderer,
    prepared: &PreparedMeshes,
    width: u32,
    height: u32,
) -> Result<RenderedTexture, GpuError>
Expand description

Renders prepared into a new width x height texture and waits for the GPU.