Function draw_target_to_surface
pub fn draw_target_to_surface(
device: &Device,
encoder: &mut CommandEncoder,
surface: &RenderSurface<'_>,
texture: &Texture,
)Expand description
Put surface’s render target into the acquired texture of its
swapchain: a texture copy when the surface was configured for one, else
its blit.