[][src]Trait web_glitz::rendering::EncodeColorBuffer

pub trait EncodeColorBuffer {
    type Buffer: RenderingOutputBuffer;
    fn encode_color_buffer<'a, 'b>(
        &'a mut self,
        context: &'b mut ColorBufferEncodingContext
    ) -> ColorBufferEncoding<'b, 'a, Self::Buffer>; }

Helper trait implemented by types that describe a color 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_color_buffer<'a, 'b>(
    &'a mut self,
    context: &'b mut ColorBufferEncodingContext
) -> ColorBufferEncoding<'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> EncodeColorBuffer for FloatAttachment<I> where
    I: AsAttachment
[src]

type Buffer = FloatBuffer<I::Format>

impl<I> EncodeColorBuffer for IntegerAttachment<I> where
    I: AsAttachment
[src]

type Buffer = IntegerBuffer<I::Format>

impl<I> EncodeColorBuffer for UnsignedIntegerAttachment<I> where
    I: AsAttachment
[src]

type Buffer = UnsignedIntegerBuffer<I::Format>

Loading content...