Struct shades::VertexShaderEnv[][src]

pub struct VertexShaderEnv {
    pub vertex_id: Expr<i32>,
    pub instance_id: Expr<i32>,
    pub base_vertex: Expr<i32>,
    pub base_instance: Expr<i32>,
    pub position: Var<V4<f32>>,
    pub point_size: Var<f32>,
    pub clip_distance: Var<[f32]>,
}

Vertex shader environment.

Fields

vertex_id: Expr<i32>

ID of the current vertex.

instance_id: Expr<i32>

Instance ID of the current vertex.

base_vertex: Expr<i32>

Base vertex offset.

base_instance: Expr<i32>

Base instance vertex offset.

position: Var<V4<f32>>

4D position of the vertex.

point_size: Var<f32>

Point size of the vertex.

clip_distance: Var<[f32]>

Trait Implementations

impl Debug for VertexShaderEnv[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.