Struct shades::GeometryShaderEnv [−][src]
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
Auto Trait Implementations
impl RefUnwindSafe for GeometryShaderEnv
[src]
impl Send for GeometryShaderEnv
[src]
impl Sync for GeometryShaderEnv
[src]
impl Unpin for GeometryShaderEnv
[src]
impl UnwindSafe for GeometryShaderEnv
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,