pub struct OffscreenTextureResource { /* private fields */ }Implementations§
Source§impl OffscreenTextureResource
impl OffscreenTextureResource
pub fn new( context: Rc<Context>, size: Size, type_: TextureChannelDataType, depth: bool, stencil: bool, ) -> Self
Sourcepub fn read_still_image(&self) -> PremultipliedImage
pub fn read_still_image(&self) -> PremultipliedImage
The color texture’s pixels. The copy is the one the last submission
made (encode_requested_copy), or else one submitted now.
pub fn get_texture(&self) -> Texture2DPtr
Trait Implementations§
Source§impl Drop for OffscreenTextureResource
impl Drop for OffscreenTextureResource
Source§impl TargetResource for OffscreenTextureResource
impl TargetResource for OffscreenTextureResource
Source§fn finish_frame(&self, encoder: &mut CommandEncoder)
fn finish_frame(&self, encoder: &mut CommandEncoder)
Records commands at the end of the frame that is about to be
submitted, after its passes, into the same submission.
Source§fn get_color_texture_view(&self) -> Option<TextureView>
fn get_color_texture_view(&self) -> Option<TextureView>
The color attachment view for render passes targeting this resource.
fn get_color_texture_format(&self) -> Option<TextureFormat>
Source§fn get_depth_stencil_texture_view(&self) -> Option<TextureView>
fn get_depth_stencil_texture_view(&self) -> Option<TextureView>
The depth/stencil view, if the resource manages one.
fn get_depth_stencil_texture_format(&self) -> Option<TextureFormat>
fn as_any(&self) -> &dyn Any
Auto Trait Implementations§
impl !Freeze for OffscreenTextureResource
impl !RefUnwindSafe for OffscreenTextureResource
impl !Send for OffscreenTextureResource
impl !Sync for OffscreenTextureResource
impl !UnwindSafe for OffscreenTextureResource
impl Forget for OffscreenTextureResource
impl Move for OffscreenTextureResource
impl Unpin for OffscreenTextureResource
impl UnsafeUnpin for OffscreenTextureResource
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