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§
source§impl 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§
source§impl Ord for ShaderTy
impl Ord for ShaderTy
source§impl PartialEq<ShaderTy> for ShaderTy
impl PartialEq<ShaderTy> for ShaderTy
source§impl PartialOrd<ShaderTy> for ShaderTy
impl PartialOrd<ShaderTy> for ShaderTy
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 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§
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