pub async fn render_texture_cached(
device: &Device,
queue: &Queue,
renderer: &MeshRenderer,
prepared: &PreparedMeshes,
width: u32,
height: u32,
targets: &mut RenderTargetCache,
) -> Result<RenderedTexture, GpuError>Expand description
Like render_texture, reusing the depth texture and recycled color textures of
targets. The renderer must target Rgba8UnormSrgb.