pub enum ShaderTy {
Show 23 variants
Void,
Bool,
Int,
Float,
Bvec2,
Bvec3,
Bvec4,
Ivec2,
Ivec3,
Ivec4,
Vec2,
Vec3,
Vec4,
Mat2,
Mat3,
Mat4,
Texture2D,
Array {
elem_ty: Rc<ShaderTy>,
len: usize,
},
Struct(StructPtr),
Enum(LiveType),
DrawShader(DrawShaderPtr),
ClosureDef(ClosureDefIndex),
ClosureDecl,
}
Variants
Void
Bool
Int
Float
Bvec2
Bvec3
Bvec4
Ivec2
Ivec3
Ivec4
Vec2
Vec3
Vec4
Mat2
Mat3
Mat4
Texture2D
Array
Struct(StructPtr)
Enum(LiveType)
DrawShader(DrawShaderPtr)
ClosureDef(ClosureDefIndex)
ClosureDecl
Implementations
sourceimpl ShaderTy
impl ShaderTy
pub fn maybe_ty_lit(&self) -> Option<TyLit>
pub fn is_scalar(&self) -> bool
pub fn is_vector(&self) -> bool
pub fn is_matrix(&self) -> bool
pub fn slots(&self) -> usize
pub fn to_ty_expr(&self) -> TyExpr
pub fn from_live_eval(live_eval: LiveEval) -> Option<Self>
pub fn from_live_node(
live_registry: &LiveRegistry,
index: usize,
nodes: &[LiveNode]
) -> Result<Self, LiveError>
Trait Implementations
sourceimpl Ord for ShaderTy
impl Ord for ShaderTy
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<ShaderTy> for ShaderTy
impl PartialOrd<ShaderTy> for ShaderTy
sourcefn partial_cmp(&self, other: &ShaderTy) -> Option<Ordering>
fn partial_cmp(&self, other: &ShaderTy) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 Eq for ShaderTy
impl StructuralEq for ShaderTy
impl StructuralPartialEq for ShaderTy
Auto Trait Implementations
impl RefUnwindSafe for ShaderTy
impl !Send for ShaderTy
impl !Sync for ShaderTy
impl Unpin for ShaderTy
impl UnwindSafe for ShaderTy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more