#[repr(C)]pub enum TextureComponentType {
Float = 0,
Sint = 1,
Uint = 2,
}
Expand description
Type of data shaders will read from a texture.
Only relevant for BindingType::SampledTexture
bindings. See TextureFormat
for more information.
Variants§
Float = 0
They see it as a floating point number texture1D
, texture2D
etc
Sint = 1
They see it as a signed integer itexture1D
, itexture2D
etc
Uint = 2
They see it as a unsigned integer utexture1D
, utexture2D
etc
Trait Implementations§
Source§impl Clone for TextureComponentType
impl Clone for TextureComponentType
Source§fn clone(&self) -> TextureComponentType
fn clone(&self) -> TextureComponentType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TextureComponentType
impl Debug for TextureComponentType
Source§impl<'de> Deserialize<'de> for TextureComponentType
impl<'de> Deserialize<'de> for TextureComponentType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TextureComponentType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TextureComponentType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<TextureFormat> for TextureComponentType
impl From<TextureFormat> for TextureComponentType
Source§fn from(format: TextureFormat) -> TextureComponentType
fn from(format: TextureFormat) -> TextureComponentType
Converts to this type from the input type.
Source§impl Hash for TextureComponentType
impl Hash for TextureComponentType
Source§impl PartialEq for TextureComponentType
impl PartialEq for TextureComponentType
Source§impl Serialize for TextureComponentType
impl Serialize for TextureComponentType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for TextureComponentType
impl Eq for TextureComponentType
impl StructuralPartialEq for TextureComponentType
Auto Trait Implementations§
impl Freeze for TextureComponentType
impl RefUnwindSafe for TextureComponentType
impl Send for TextureComponentType
impl Sync for TextureComponentType
impl Unpin for TextureComponentType
impl UnwindSafe for TextureComponentType
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