pub enum AttributeType {
Show 77 variants I8, I8I8, I8I8I8, I8I8I8I8, U8, U8U8, U8U8U8, U8U8U8U8, I16, I16I16, I16I16I16, I16I16I16I16, U16, U16U16, U16U16U16, U16U16U16U16, I32, I32I32, I32I32I32, I32I32I32I32, U32, U32U32, U32U32U32, U32U32U32U32, I64, I64I64, I64I64I64, I64I64I64I64, U64, U64U64, U64U64U64, U64U64U64U64, F16, F16F16, F16F16F16, F16F16F16F16, F16x2x2, F16x2x3, F16x2x4, F16x3x2, F16x3x3, F16x3x4, F16x4x2, F16x4x3, F16x4x4, F32, F32F32, F32F32F32, F32F32F32F32, F32x2x2, F32x2x3, F32x2x4, F32x3x2, F32x3x3, F32x3x4, F32x4x2, F32x4x3, F32x4x4, F64, F64F64, F64F64F64, F64F64F64F64, F64x2x2, F64x2x3, F64x2x4, F64x3x2, F64x3x3, F64x3x4, F64x4x2, F64x4x3, F64x4x4, I2I10I10I10Reversed, U2U10U10U10Reversed, I10I10I10I2, U10U10U10U2, F10F11F11UnsignedIntReversed, FixedFloatI16U16,
}

Variants§

§

I8

§

I8I8

§

I8I8I8

§

I8I8I8I8

§

U8

§

U8U8

§

U8U8U8

§

U8U8U8U8

§

I16

§

I16I16

§

I16I16I16

§

I16I16I16I16

§

U16

§

U16U16

§

U16U16U16

§

U16U16U16U16

§

I32

§

I32I32

§

I32I32I32

§

I32I32I32I32

§

U32

§

U32U32

§

U32U32U32

§

U32U32U32U32

§

I64

§

I64I64

§

I64I64I64

§

I64I64I64I64

§

U64

§

U64U64

§

U64U64U64

§

U64U64U64U64

§

F16

§

F16F16

§

F16F16F16

§

F16F16F16F16

§

F16x2x2

2x2 matrix of f16s

§

F16x2x3

2x3 matrix of f16s

§

F16x2x4

2x3 matrix of f16s

§

F16x3x2

3x2 matrix of f16s

§

F16x3x3

3x3 matrix of f16s

§

F16x3x4

3x4 matrix of f16s

§

F16x4x2

4x2 matrix of f16s

§

F16x4x3

4x3 matrix of f16s

§

F16x4x4

4x4 matrix of f16s

§

F32

§

F32F32

§

F32F32F32

§

F32F32F32F32

§

F32x2x2

2x2 matrix of f32s

§

F32x2x3

2x3 matrix of f32s

§

F32x2x4

2x3 matrix of f32s

§

F32x3x2

3x2 matrix of f32s

§

F32x3x3

3x3 matrix of f32s

§

F32x3x4

3x4 matrix of f32s

§

F32x4x2

4x2 matrix of f32s

§

F32x4x3

4x3 matrix of f32s

§

F32x4x4

4x4 matrix of f32s

§

F64

Warning: using f64s can be very slow.

§

F64F64

Warning: using f64s can be very slow.

§

F64F64F64

Warning: using f64s can be very slow.

§

F64F64F64F64

Warning: using f64s can be very slow.

§

F64x2x2

2x2 matrix of f64s Warning: using f64s can be very slow.

§

F64x2x3

2x3 matrix of f64s Warning: using f64s can be very slow.

§

F64x2x4

2x3 matrix of f64s Warning: using f64s can be very slow.

§

F64x3x2

3x2 matrix of f64s Warning: using f64s can be very slow.

§

F64x3x3

3x3 matrix of f64s Warning: using f64s can be very slow.

§

F64x3x4

3x4 matrix of f64s Warning: using f64s can be very slow.

§

F64x4x2

4x2 matrix of f64s Warning: using f64s can be very slow.

§

F64x4x3

4x3 matrix of f64s Warning: using f64s can be very slow.

§

F64x4x4

4x4 matrix of f64s Warning: using f64s can be very slow.

§

I2I10I10I10Reversed

From MSB to LSB: two bits for the alpha, ten bits for the blue, ten bits for the green, ten bits for the red.

Corresponds to GL_INT_2_10_10_10_REV.

§

U2U10U10U10Reversed

From MSB to LSB: two bits for the alpha, ten bits for the blue, ten bits for the green, ten bits for the red.

Corresponds to GL_UNSIGNED_INT_2_10_10_10_REV.

§

I10I10I10I2

Corresponds to GL_INT_10_10_10_2.

§

U10U10U10U2

Corresponds to GL_UNSIGNED_INT_10_10_10_2.

§

F10F11F11UnsignedIntReversed

Three floating points values turned into unsigned integers./

Corresponds to GL_UNSIGNED_INT_10F_11F_11F_REV.

§

FixedFloatI16U16

Fixed floating points. A 16bits signed value followed by the 16bits unsigned exponent.

Corresponds to GL_FIXED.

Implementations§

source§

impl AttributeType

source

pub fn is_supported<C>(&self, caps: &C) -> bool

Returns true if the backend supports this type of attribute.

source

pub fn get_size_bytes(&self) -> usize

Returns the size in bytes of a value of this type.

source

pub fn get_num_components(&self) -> usize

Returns the number of values for this type.

Trait Implementations§

source§

impl Clone for AttributeType

source§

fn clone(&self) -> AttributeType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AttributeType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for AttributeType

source§

fn eq(&self, other: &AttributeType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for AttributeType

source§

impl Eq for AttributeType

source§

impl StructuralEq for AttributeType

source§

impl StructuralPartialEq for AttributeType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Content for T
where T: Copy,

§

type Owned = T

A type that holds a sized version of the content.
source§

unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
where F: FnOnce(&mut T) -> Result<(), E>,

Prepares an output buffer, then turns this buffer into an Owned. User-provided closure F must only write to and not read from &mut Self.
source§

fn get_elements_size() -> usize

Returns the size of each element.
source§

fn to_void_ptr(&self) -> *const ()

Produces a pointer to the data.
source§

fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>

Builds a pointer to this type from a raw pointer.
source§

fn is_size_suitable(size: usize) -> bool

Returns true if the size is suitable to store a type like this.
§

impl<T> Downcast for T
where T: 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.
§

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.
§

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.
§

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.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more