pub struct RenderTarget<'a, T, C = f32>where
C: Num,{
pub x: C,
pub y: C,
pub mvp: &'a [f32; 16],
pub output: &'a T,
}
Expand description
An internal render target to which pass colour attachments are made.
The x-coordinate of the viewport to render to.
The y-coordinate of the viewport to render to.
The MVP to pass to the shader for this render pass.
The output surface for the pass.
Create a new render target.
Create a render target with the identity MVP.
Create an offscreen render target with the given MVP.
Create a viewport render target.
Create a viewport render target with the given output.
Performs copy-assignment from
source.
Read more
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.