Struct wgpu::SurfaceTexture
source · Expand description
Surface texture that can be rendered to.
Result of a successful call to Surface::get_current_texture
.
Fields§
§texture: Texture
Accessible view of the frame.
suboptimal: bool
true
if the acquired buffer can still be used for rendering,
but should be recreated for maximum performance.
Implementations§
source§impl SurfaceTexture
impl SurfaceTexture
sourcepub fn present(self)
pub fn present(self)
Schedule this texture to be presented on the owning surface.
Needs to be called after any work on the texture is scheduled via Queue::submit
.