pub trait Target {
// Required method
fn rasterize<V, Fs>(
&mut self,
scanline: Scanline<V>,
frag_shader: &Fs,
ctx: &Context,
) -> Throughput
where V: Vary,
Fs: FragmentShader<V>;
}Expand description
Trait for types that can be used as render targets.
Required Methods§
Sourcefn rasterize<V, Fs>(
&mut self,
scanline: Scanline<V>,
frag_shader: &Fs,
ctx: &Context,
) -> Throughputwhere
V: Vary,
Fs: FragmentShader<V>,
fn rasterize<V, Fs>(
&mut self,
scanline: Scanline<V>,
frag_shader: &Fs,
ctx: &Context,
) -> Throughputwhere
V: Vary,
Fs: FragmentShader<V>,
Writes a single scanline into self.
Returns count of fragments input and output.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.