#[repr(u16)]pub enum ShaderId {
Show 32 variants
VertPassthru2d = 0,
VertPassthru2dColor = 1,
VertPassthru2dRectColor = 2,
VertPassthru2dRectUv = 3,
VertPassthru2dRectUvLayer = 4,
VertPassthru2dLayer = 5,
VertTileSpace2dTile = 6,
VertTileSpace2dTileColor = 7,
VertWorldSpace2d = 8,
VertWorldSpace3d = 9,
VertWorldSpace3dColor = 10,
VertPassthru3d = 11,
VertPassthru3dScaleColor = 12,
VertModelSpace3dInstancedScaleColor = 13,
VertModelSpace3dInstancedOrientationScaleColor = 14,
VertModelSpace3dInstancedCapsule = 15,
GeomWorldSpace2dRect = 16,
GeomWorldSpace2dRectUv = 17,
GeomWorldSpace2dRectUvLayer = 18,
GeomWorldSpace2dSprite = 19,
GeomWorldSpace2dSpriteLayer = 20,
GeomWorldSpace2dTile = 21,
GeomWorldSpace2dTileColor = 22,
GeomWorldSpace3dAabbLines = 23,
GeomWorldSpace3dAabbTriangles = 24,
GeomWorldSpace3dSprite = 25,
FragColor = 26,
FragUniColor = 27,
FragTexture2d = 28,
FragTexture2dLayer = 29,
FragTexture2dTile = 30,
FragTexture2dTileColor = 31,
}Variants§
VertPassthru2d = 0
VertPassthru2dColor = 1
VertPassthru2dRectColor = 2
VertPassthru2dRectUv = 3
VertPassthru2dRectUvLayer = 4
VertPassthru2dLayer = 5
VertTileSpace2dTile = 6
VertTileSpace2dTileColor = 7
VertWorldSpace2d = 8
VertWorldSpace3d = 9
VertWorldSpace3dColor = 10
VertPassthru3d = 11
VertPassthru3dScaleColor = 12
VertModelSpace3dInstancedScaleColor = 13
VertModelSpace3dInstancedOrientationScaleColor = 14
VertModelSpace3dInstancedCapsule = 15
GeomWorldSpace2dRect = 16
GeomWorldSpace2dRectUv = 17
GeomWorldSpace2dRectUvLayer = 18
GeomWorldSpace2dSprite = 19
GeomWorldSpace2dSpriteLayer = 20
GeomWorldSpace2dTile = 21
GeomWorldSpace2dTileColor = 22
GeomWorldSpace3dAabbLines = 23
GeomWorldSpace3dAabbTriangles = 24
GeomWorldSpace3dSprite = 25
FragColor = 26
FragUniColor = 27
FragTexture2d = 28
FragTexture2dLayer = 29
FragTexture2dTile = 30
FragTexture2dTileColor = 31
Implementations§
Source§impl ShaderId
impl ShaderId
pub fn source_str(&self) -> &'static str
pub fn sourcepath(&self) -> &'static str
Trait Implementations§
Source§impl IntoEnumIterator for ShaderId
impl IntoEnumIterator for ShaderId
type Iterator = ShaderIdIter
fn iter() -> ShaderIdIter ⓘ
Source§impl Ord for ShaderId
impl Ord for ShaderId
Source§impl PartialOrd for ShaderId
impl PartialOrd for ShaderId
impl Copy for ShaderId
impl Eq for ShaderId
impl StructuralPartialEq for ShaderId
Auto Trait Implementations§
impl Freeze for ShaderId
impl RefUnwindSafe for ShaderId
impl Send for ShaderId
impl Sync for ShaderId
impl Unpin for ShaderId
impl UnwindSafe for ShaderId
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
Source§unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, 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
fn get_elements_size() -> usize
Returns the size of each element.
Source§fn to_void_ptr(&self) -> *const ()
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>
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
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.