[][src]Trait web_glitz::rendering::EncodeDepthStencilBuffer

pub trait EncodeDepthStencilBuffer {
    type Buffer: RenderingOutputBuffer;
    fn encode_depth_stencil_buffer<'a, 'b>(
        &'a mut self,
        context: &'b mut DepthStencilBufferEncodingContext
    ) -> DepthStencilBufferEncoding<'b, 'a, Self::Buffer>; }

Helper trait implemented by types that describe a depth-stencil image attachment for a [RenderTarget].

Associated Types

type Buffer: RenderingOutputBuffer

The type of RenderingOutputBuffer that is allocated in the framebuffer to buffer modifications to the attached image.

Loading content...

Required methods

fn encode_depth_stencil_buffer<'a, 'b>(
    &'a mut self,
    context: &'b mut DepthStencilBufferEncodingContext
) -> DepthStencilBufferEncoding<'b, 'a, Self::Buffer>

Returns an encoding of the information needed by a [RenderPass] to load data from the attached image into the framebuffer before the render pass, and to store data from the framebuffer back into the attached image after the render pass.

Loading content...

Implementors

impl<I> EncodeDepthStencilBuffer for DepthAttachment<I> where
    I: AsAttachment
[src]

type Buffer = DepthBuffer<I::Format>

impl<I> EncodeDepthStencilBuffer for DepthStencilAttachment<I> where
    I: AsAttachment
[src]

type Buffer = DepthStencilBuffer<I::Format>

impl<I> EncodeDepthStencilBuffer for StencilAttachment<I> where
    I: AsAttachment
[src]

type Buffer = StencilBuffer<I::Format>

Loading content...