Enum gl_utils::shader::ShaderId[]

pub enum ShaderId {
    VertPassthru2d,
    VertPassthru2dColor,
    VertPassthru2dSprite,
    VertPassthru2dTile,
    VertWorldSpace2d,
    VertWorldSpace3d,
    VertPassthru3dScaleColor,
    VertModelSpace3dInstancedScaleColor,
    VertModelSpace3dInstancedOrientationScaleColor,
    VertModelSpace3dInstancedCapsule,
    GeomWorldSpace2dSprite,
    GeomWorldSpace2dTile,
    GeomWorldSpace3dAabb,
    FragColor,
    FragUniColor,
    FragTexture2d,
    FragTexture2dSprite,
    FragTexture2dTile,
}

Variants

Methods

impl ShaderId

Important traits for IdVariants

impl ShaderId

impl ShaderId

impl ShaderId
[src]

Trait Implementations

impl Clone for ShaderId

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ShaderId

impl Debug for ShaderId

Formats the value using the given formatter. Read more

impl Eq for ShaderId

impl PartialEq for ShaderId

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Ord for ShaderId

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for ShaderId

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl From<ShaderId> for isize

Performs the conversion.

impl From<ShaderId> for usize

Performs the conversion.

impl From<ShaderId> for i64

Performs the conversion.

impl From<ShaderId> for u64

Performs the conversion.

impl Bounded for ShaderId

returns the smallest finite number this type can represent

returns the largest finite number this type can represent

impl FromPrimitive for ShaderId

Convert an i64 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an u64 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an isize to return an optional value of this type. If the value cannot be represented by this value, the None is returned. Read more

Convert an i8 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an i16 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an i32 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an i128 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert a usize to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an u8 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an u16 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an u32 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an u128 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert a f32 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert a f64 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

impl ToPrimitive for ShaderId

Converts the value of self to an i64.

Converts the value of self to an u64.

Converts the value of self to an isize.

Converts the value of self to an i8.

Converts the value of self to an i16.

Converts the value of self to an i32.

Converts the value of self to an i128. Read more

Converts the value of self to a usize.

Converts the value of self to an u8.

Converts the value of self to an u16.

Converts the value of self to an u32.

Converts the value of self to an u128. Read more

Converts the value of self to an f32.

Converts the value of self to an f64.

impl EnumUnitary for ShaderId

Auto Trait Implementations

impl Send for ShaderId

impl Sync for ShaderId