[][src]Trait web_glitz::rendering::AsAttachment

pub trait AsAttachment {
    type Format: InternalFormat;
    fn as_attachment(&mut self) -> Attachment<'_, Self::Format>;
}

Trait implemented for image references that can be attached to a render target.

See also [RenderTargetDescriptor].

Associated Types

type Format: InternalFormat

The type of image storage format the image is stored in.

Loading content...

Required methods

fn as_attachment(&mut self) -> Attachment<'_, Self::Format>

Converts the image reference into a render target attachment.

Loading content...

Implementations on Foreign Types

impl<'a, T> AsAttachment for &'a mut T where
    T: AsAttachment
[src]

type Format = T::Format

Loading content...

Implementors

impl<'a, F> AsAttachment for Texture2DLevelMut<'a, F> where
    F: TextureFormat
[src]

type Format = F

impl<'a, F> AsAttachment for Texture2DArrayLevelLayerMut<'a, F> where
    F: TextureFormat
[src]

type Format = F

impl<'a, F> AsAttachment for Texture3DLevelLayerMut<'a, F> where
    F: TextureFormat
[src]

type Format = F

impl<'a, F> AsAttachment for TextureCubeLevelFaceMut<'a, F> where
    F: TextureFormat
[src]

type Format = F

impl<F> AsAttachment for Renderbuffer<F> where
    F: RenderbufferFormat + 'static, 
[src]

type Format = F

impl<I> AsAttachment for Extended<I> where
    I: AsAttachment
[src]

type Format = I::Format

Loading content...