retrofire_core::render::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<Buf: AsMutSlice2<u32>> Target for Buf

Source§

impl<Col, Dep> Target for Framebuf<Col, Dep>
where Col: AsMutSlice2<u32>, Dep: AsMutSlice2<f32>,