pub enum VertexFormat {
Show 30 variants
Uint8x2,
Uint8x4,
Sint8x2,
Sint8x4,
Unorm8x2,
Unorm8x4,
Snorm8x2,
Snorm8x4,
Uint16x2,
Uint16x4,
Sint16x2,
Sint16x4,
Unorm16x2,
Unorm16x4,
Snorm16x2,
Snorm16x4,
Float16x2,
Float16x4,
Float32,
Float32x2,
Float32x3,
Float32x4,
Uint32,
Uint32x2,
Uint32x3,
Uint32x4,
Sint32,
Sint32x2,
Sint32x3,
Sint32x4,
}
Expand description
The memory format of a single vertex attribute’s data.
Variants§
Uint8x2
Two 8-bit unsigned integer components.
Uint8x4
Four 8-bit unsigned integer components.
Sint8x2
Two 8-bit signed integer components.
Sint8x4
Four 8-bit signed integer components.
Unorm8x2
Two 8-bit unsigned integer components normalized to [0.0, 1.0]
.
Unorm8x4
Four 8-bit unsigned integer components normalized to [0.0, 1.0]
.
Snorm8x2
Two 8-bit signed integer components normalized to [-1.0, 1.0]
.
Snorm8x4
Four 8-bit signed integer components normalized to [-1.0, 1.0]
.
Uint16x2
Two 16-bit unsigned integer components.
Uint16x4
Four 16-bit unsigned integer components.
Sint16x2
Two 16-bit signed integer components.
Sint16x4
Four 16-bit signed integer components.
Unorm16x2
Two 16-bit unsigned integer components normalized to [0.0, 1.0]
.
Unorm16x4
Four 16-bit unsigned integer components normalized to [0.0, 1.0]
.
Snorm16x2
Two 16-bit signed integer components normalized to [-1.0, 1.0]
.
Snorm16x4
Four 16-bit signed integer components normalized to [-1.0, 1.0]
.
Float16x2
Two 16-bit float components.
Float16x4
Four 16-bit float components.
Float32
One 32-bit float component.
Float32x2
Two 32-bit float components.
Float32x3
Three 32-bit float components.
Float32x4
Four 32-bit float components.
Uint32
One 32-bit unsigned integer component.
Uint32x2
Two 32-bit unsigned integer components.
Uint32x3
Three 32-bit unsigned integer components.
Uint32x4
Four 32-bit unsigned integer components.
Sint32
One 32-bit signed integer component.
Sint32x2
Two 32-bit signed integer components.
Sint32x3
Three 32-bit signed integer components.
Sint32x4
Four 32-bit signed integer components.
Trait Implementations§
Source§impl Clone for VertexFormat
impl Clone for VertexFormat
Source§fn clone(&self) -> VertexFormat
fn clone(&self) -> VertexFormat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for VertexFormat
impl Debug for VertexFormat
Source§impl Hash for VertexFormat
impl Hash for VertexFormat
Source§impl PartialEq for VertexFormat
impl PartialEq for VertexFormat
impl Copy for VertexFormat
impl Eq for VertexFormat
impl StructuralPartialEq for VertexFormat
Auto Trait Implementations§
impl Freeze for VertexFormat
impl RefUnwindSafe for VertexFormat
impl Send for VertexFormat
impl Sync for VertexFormat
impl Unpin for VertexFormat
impl UnwindSafe for VertexFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.