pub enum SurfaceAttachment {
Texture(TexturePtr),
RenderTarget(RenderTargetPtr),
}
Variants§
Texture(TexturePtr)
RenderTarget(RenderTargetPtr)
Implementations§
Source§impl SurfaceAttachment
impl SurfaceAttachment
pub fn pixel_format(&self) -> PixelFormat
Trait Implementations§
Source§impl Clone for SurfaceAttachment
impl Clone for SurfaceAttachment
Source§fn clone(&self) -> SurfaceAttachment
fn clone(&self) -> SurfaceAttachment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SurfaceAttachment
impl !RefUnwindSafe for SurfaceAttachment
impl !Send for SurfaceAttachment
impl !Sync for SurfaceAttachment
impl Unpin for SurfaceAttachment
impl !UnwindSafe for SurfaceAttachment
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