pub struct GeometryShaderOutputs<O> {
    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>,
    pub user: O,
}
Expand description

Geometry shader outputs.

Fields

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.

user: O

Trait Implementations

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.