#[repr(i32)]
pub enum UniqueSemantics {
MVP,
Output,
FinalViewport,
FrameCount,
FrameDirection,
FloatParameter,
}
Expand description
Unique semantics are builtin uniforms passed by the shader runtime that are always available.
Variants§
MVP
The Model View Projection matrix for the frame.
Output
The viewport size of the current pass.
FinalViewport
The viewport size of the final pass.
FrameCount
The frame count, possibly with shader-defined modulo.
FrameDirection
The frame direction.
FloatParameter
A user defined float parameter.
Implementations§
source§impl UniqueSemantics
impl UniqueSemantics
sourcepub const fn semantics(self) -> Semantic<UniqueSemantics, ()>
pub const fn semantics(self) -> Semantic<UniqueSemantics, ()>
Produce a Semantic
for this UniqueSemantics
.
sourcepub const fn binding_type(&self) -> UniformType
pub const fn binding_type(&self) -> UniformType
Get the type of the uniform when bound.
Trait Implementations§
source§impl Clone for UniqueSemantics
impl Clone for UniqueSemantics
source§fn clone(&self) -> UniqueSemantics
fn clone(&self) -> UniqueSemantics
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UniqueSemantics
impl Debug for UniqueSemantics
source§impl From<UniqueSemantics> for UniformBinding
impl From<UniqueSemantics> for UniformBinding
source§fn from(value: UniqueSemantics) -> Self
fn from(value: UniqueSemantics) -> Self
Converts to this type from the input type.
source§impl Hash for UniqueSemantics
impl Hash for UniqueSemantics
source§impl Ord for UniqueSemantics
impl Ord for UniqueSemantics
source§fn cmp(&self, other: &UniqueSemantics) -> Ordering
fn cmp(&self, other: &UniqueSemantics) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<UniqueSemantics> for UniqueSemantics
impl PartialEq<UniqueSemantics> for UniqueSemantics
source§fn eq(&self, other: &UniqueSemantics) -> bool
fn eq(&self, other: &UniqueSemantics) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<UniqueSemantics> for UniqueSemantics
impl PartialOrd<UniqueSemantics> for UniqueSemantics
source§fn partial_cmp(&self, other: &UniqueSemantics) -> Option<Ordering>
fn partial_cmp(&self, other: &UniqueSemantics) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for UniqueSemantics
impl Eq for UniqueSemantics
impl StructuralEq for UniqueSemantics
impl StructuralPartialEq for UniqueSemantics
Auto Trait Implementations§
impl RefUnwindSafe for UniqueSemantics
impl Send for UniqueSemantics
impl Sync for UniqueSemantics
impl Unpin for UniqueSemantics
impl UnwindSafe for UniqueSemantics
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more