Trait web_glitz::rendering::EncodeMultisampleColorBuffer [−][src]
pub trait EncodeMultisampleColorBuffer {
type Buffer: RenderingOutputBuffer;
fn encode_multisample_color_buffer<'a, 'b>(
&'a mut self,
context: &'b mut ColorBufferEncodingContext
) -> ColorBufferEncoding<'b, 'a, Self::Buffer>;
}
Expand description
Helper trait implemented by types that describe a multisample color image attachment for a [MultisampleRenderTarget].
Associated Types
The type of RenderingOutputBuffer that is allocated in the framebuffer to buffer modifications to the attached image.
Required methods
fn encode_multisample_color_buffer<'a, 'b>(
&'a mut self,
context: &'b mut ColorBufferEncodingContext
) -> ColorBufferEncoding<'b, 'a, Self::Buffer>
fn encode_multisample_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.