pub enum VertexAttribFormat {
Show 16 variants
Float1,
Float2,
Float3,
Float4,
Sint1,
Sint2,
Sint3,
Sint4,
Uint1,
Uint2,
Uint3,
Uint4,
Unorm4,
Snorm4,
Half2,
Half4,
}Variants§
Float1
Float2
Float3
Float4
Sint1
Sint2
Sint3
Sint4
Uint1
Uint2
Uint3
Uint4
Unorm4
Snorm4
Half2
Half4
Implementations§
Source§impl VertexAttribFormat
impl VertexAttribFormat
pub fn size_bytes(self) -> u32
pub fn component_count(self) -> u32
pub fn glsl_type_name(self) -> &'static str
Trait Implementations§
Source§impl Clone for VertexAttribFormat
impl Clone for VertexAttribFormat
impl Copy for VertexAttribFormat
Source§impl Debug for VertexAttribFormat
impl Debug for VertexAttribFormat
Source§impl PartialEq for VertexAttribFormat
impl PartialEq for VertexAttribFormat
impl StructuralPartialEq for VertexAttribFormat
Auto Trait Implementations§
impl Freeze for VertexAttribFormat
impl RefUnwindSafe for VertexAttribFormat
impl Send for VertexAttribFormat
impl Sync for VertexAttribFormat
impl Unpin for VertexAttribFormat
impl UnsafeUnpin for VertexAttribFormat
impl UnwindSafe for VertexAttribFormat
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.