pub struct OffscreenTexture { /* private fields */ }Expand description
webgpu::OffscreenTexture
Implementations§
Trait Implementations§
Source§impl OffscreenTexture for OffscreenTexture
impl OffscreenTexture for OffscreenTexture
Source§fn is_renderable(&self) -> bool
fn is_renderable(&self) -> bool
Check if the texture resource is valid and can be rendered to
Source§fn draw_target(&self) -> &dyn DrawTarget
fn draw_target(&self) -> &dyn DrawTarget
What a render pass draws into the texture through.
fn read_still_image(&self) -> PremultipliedImage
fn get_texture(&self) -> Texture2DPtr
Source§fn submit(&self, encoder: &dyn GfxCommandEncoder)
fn submit(&self, encoder: &dyn GfxCommandEncoder)
Submits what
encoder recorded so far, after the passes that drew
into the texture, so that what samples it later sees them.fn as_any(&self) -> &dyn Any
Auto Trait Implementations§
impl !Freeze for OffscreenTexture
impl !RefUnwindSafe for OffscreenTexture
impl !Send for OffscreenTexture
impl !Sync for OffscreenTexture
impl !UnwindSafe for OffscreenTexture
impl Forget for OffscreenTexture
impl Move for OffscreenTexture
impl Unpin for OffscreenTexture
impl UnsafeUnpin for OffscreenTexture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more