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
position: Vector4<f32>
Screen-space vertex position. This is the position on screen of this vertex.
Similar to gl_FragCoord
uniforms: K
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]
K: Send + Sync + Barycentric,
impl<K: Clone> Clone for ScreenVertex<K> where
K: Send + Sync + Barycentric,
[src]
K: Send + Sync + Barycentric,
fn clone(&self) -> ScreenVertex<K>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more