pub trait FrameContextExt {
// Required methods
fn encoder_ref(&self) -> Option<&CommandEncoder>;
fn encoder_mut(&mut self) -> Option<&mut CommandEncoder>;
fn surface_view(&self) -> &TextureView;
fn surface_texture(&self) -> &Texture;
}Expand description
Extended access to FrameContext internals.
Required Methods§
Sourcefn encoder_ref(&self) -> Option<&CommandEncoder>
fn encoder_ref(&self) -> Option<&CommandEncoder>
Get direct access to the command encoder.
Sourcefn encoder_mut(&mut self) -> Option<&mut CommandEncoder>
fn encoder_mut(&mut self) -> Option<&mut CommandEncoder>
Get mutable access to the command encoder.
Sourcefn surface_view(&self) -> &TextureView
fn surface_view(&self) -> &TextureView
Get the surface texture view for this frame.
Sourcefn surface_texture(&self) -> &Texture
fn surface_texture(&self) -> &Texture
Get the surface texture for this frame.