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
pub fn read_still_image(&self) -> PremultipliedImage
pub fn get_texture(&self) -> Texture2DPtr
pub fn take_texture(&self) -> Option<Texture2DPtr>
Trait Implementations§
Source§impl Drop for OffscreenTextureResource
impl Drop for OffscreenTextureResource
Source§impl RenderableResource for OffscreenTextureResource
impl RenderableResource for OffscreenTextureResource
Source§fn swap(&self)
fn swap(&self)
Renderable resources that require a swap function to be called
explicitly can override this method.
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,
or
None if the backend supplies it (swapchain).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 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