Struct softrender::render::geometry::ScreenVertex [] [src]

pub struct ScreenVertex<K> where
    K: Send + Sync + Barycentric
{ pub position: Vector4<f32>, pub uniforms: K, }

Defines a vertex and uniforms in screen-space, which is used in the fragment shader.

Clip-space vertices are transformed to screen-space after the vertex shader stage but before the fragment shader stage.

Fields

Screen-space vertex position. This is the position on screen of this vertex.

Similar to gl_FragCoord

Any custom data to be sent between shader stages, such as positions, normals, UV coordinates and whatever else you would usually put in uniforms to share between shader stages.

Trait Implementations

impl<K: Debug> Debug for ScreenVertex<K> where
    K: Send + Sync + Barycentric
[src]

Formats the value using the given formatter.

impl<K: Clone> Clone for ScreenVertex<K> where
    K: Send + Sync + Barycentric
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more