[−][src]Trait web_glitz::rendering::AsAttachment
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.
Required methods
fn as_attachment(&mut self) -> Attachment<'_, Self::Format>
Converts the image reference into a render target attachment.
Implementations on Foreign Types
impl<'a, T> AsAttachment for &'a mut T where
T: AsAttachment, [src]
T: AsAttachment,
type Format = T::Format
fn as_attachment(&mut self) -> Attachment<'_, Self::Format>[src]
Implementors
impl<'a, F> AsAttachment for Texture2DLevelMut<'a, F> where
F: TextureFormat, [src]
F: TextureFormat,
type Format = F
fn as_attachment(&mut self) -> Attachment<'_, Self::Format>[src]
impl<'a, F> AsAttachment for Texture2DArrayLevelLayerMut<'a, F> where
F: TextureFormat, [src]
F: TextureFormat,
type Format = F
fn as_attachment(&mut self) -> Attachment<'_, Self::Format>[src]
impl<'a, F> AsAttachment for Texture3DLevelLayerMut<'a, F> where
F: TextureFormat, [src]
F: TextureFormat,
type Format = F
fn as_attachment(&mut self) -> Attachment<'_, Self::Format>[src]
impl<'a, F> AsAttachment for TextureCubeLevelFaceMut<'a, F> where
F: TextureFormat, [src]
F: TextureFormat,
type Format = F
fn as_attachment(&mut self) -> Attachment<'_, Self::Format>[src]
impl<F> AsAttachment for Renderbuffer<F> where
F: RenderbufferFormat + 'static, [src]
F: RenderbufferFormat + 'static,
type Format = F
fn as_attachment(&mut self) -> Attachment<'_, Self::Format>[src]
impl<I> AsAttachment for Extended<I> where
I: AsAttachment, [src]
I: AsAttachment,