Target

Trait Target 

Source
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§

Source

fn rasterize<V, Fs>( &mut self, scanline: Scanline<V>, frag_shader: &Fs, ctx: &Context, ) -> Throughput
where 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.

Implementors§

Source§

impl Target for Buf2<Color3>

Source§

impl Target for Buf2<Color4>

Source§

impl<Buf, Fmt> Target for Colorbuf<Buf, Fmt>
where Buf: AsMutSlice2<u32>, Color4: IntoPixel<u32, Fmt>,

Source§

impl<Col, Fmt, Dep> Target for Framebuf<Colorbuf<Col, Fmt>, Dep>
where Col: AsMutSlice2<u32>, Dep: AsMutSlice2<f32>, Color4: IntoPixel<u32, Fmt>,