Struct shades::GeometryShaderEnv[][src]

pub struct GeometryShaderEnv {
    pub primitive_id_in: Expr<i32>,
    pub invocation_id: Expr<i32>,
    pub input: Expr<[GeometryPerVertexIn]>,
    pub position: Var<V4<f32>>,
    pub point_size: Var<f32>,
    pub clip_distance: Var<[f32]>,
    pub cull_distance: Var<[f32]>,
    pub primitive_id: Var<i32>,
    pub layer: Var<i32>,
    pub viewport_index: Var<i32>,
}

Geometry shader environment.

Fields

primitive_id_in: Expr<i32>

Contains the index of the current primitive.

invocation_id: Expr<i32>

ID of the current invocation of the geometry shader.

input: Expr<[GeometryPerVertexIn]>

Read-only environment for each vertices.

position: Var<V4<f32>>

Output 4D vertex position.

point_size: Var<f32>

Output vertex point size.

clip_distance: Var<[f32]>

Output clip distances to user-defined planes.

cull_distance: Var<[f32]>

Output cull distances to user-defined planes.

primitive_id: Var<i32>

Primitive ID to write to in.

layer: Var<i32>

Layer to write to in.

viewport_index: Var<i32>

Viewport index to write to.

Trait Implementations

impl Debug for GeometryShaderEnv[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.