WGPUTextureFormat

Struct WGPUTextureFormat 

Source
#[repr(transparent)]
pub struct WGPUTextureFormat(pub c_int);

Tuple Fields§

§0: c_int

Implementations§

§

impl WGPUTextureFormat

pub const Undefined: Self = raw::WGPUTextureFormat_WGPUTextureFormat_Undefined

pub const R8Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R8Unorm

pub const R8Snorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R8Snorm

pub const R8Uint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R8Uint

pub const R8Sint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R8Sint

pub const R16Uint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R16Uint

pub const R16Sint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R16Sint

pub const R16Float: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R16Float

pub const RG8Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RG8Unorm

pub const RG8Snorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RG8Snorm

pub const RG8Uint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RG8Uint

pub const RG8Sint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RG8Sint

pub const R32Float: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R32Float

pub const R32Uint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R32Uint

pub const R32Sint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R32Sint

pub const RG16Uint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RG16Uint

pub const RG16Sint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RG16Sint

pub const RG16Float: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RG16Float

pub const RGBA8Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RGBA8Unorm

pub const RGBA8UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RGBA8UnormSrgb

pub const RGBA8Snorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RGBA8Snorm

pub const RGBA8Uint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RGBA8Uint

pub const RGBA8Sint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RGBA8Sint

pub const BGRA8Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_BGRA8Unorm

pub const BGRA8UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_BGRA8UnormSrgb

pub const RGB10A2Uint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RGB10A2Uint

pub const RGB10A2Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RGB10A2Unorm

pub const RG11B10Ufloat: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RG11B10Ufloat

pub const RGB9E5Ufloat: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RGB9E5Ufloat

pub const RG32Float: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RG32Float

pub const RG32Uint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RG32Uint

pub const RG32Sint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RG32Sint

pub const RGBA16Uint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RGBA16Uint

pub const RGBA16Sint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RGBA16Sint

pub const RGBA16Float: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RGBA16Float

pub const RGBA32Float: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RGBA32Float

pub const RGBA32Uint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RGBA32Uint

pub const RGBA32Sint: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RGBA32Sint

pub const Stencil8: Self = raw::WGPUTextureFormat_WGPUTextureFormat_Stencil8

pub const Depth16Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_Depth16Unorm

pub const Depth24Plus: Self = raw::WGPUTextureFormat_WGPUTextureFormat_Depth24Plus

pub const Depth24PlusStencil8: Self = raw::WGPUTextureFormat_WGPUTextureFormat_Depth24PlusStencil8

pub const Depth32Float: Self = raw::WGPUTextureFormat_WGPUTextureFormat_Depth32Float

pub const Depth32FloatStencil8: Self = raw::WGPUTextureFormat_WGPUTextureFormat_Depth32FloatStencil8

pub const BC1RGBAUnorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_BC1RGBAUnorm

pub const BC1RGBAUnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_BC1RGBAUnormSrgb

pub const BC2RGBAUnorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_BC2RGBAUnorm

pub const BC2RGBAUnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_BC2RGBAUnormSrgb

pub const BC3RGBAUnorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_BC3RGBAUnorm

pub const BC3RGBAUnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_BC3RGBAUnormSrgb

pub const BC4RUnorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_BC4RUnorm

pub const BC4RSnorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_BC4RSnorm

pub const BC5RGUnorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_BC5RGUnorm

pub const BC5RGSnorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_BC5RGSnorm

pub const BC6HRGBUfloat: Self = raw::WGPUTextureFormat_WGPUTextureFormat_BC6HRGBUfloat

pub const BC6HRGBFloat: Self = raw::WGPUTextureFormat_WGPUTextureFormat_BC6HRGBFloat

pub const BC7RGBAUnorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_BC7RGBAUnorm

pub const BC7RGBAUnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_BC7RGBAUnormSrgb

pub const ETC2RGB8Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ETC2RGB8Unorm

pub const ETC2RGB8UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ETC2RGB8UnormSrgb

pub const ETC2RGB8A1Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ETC2RGB8A1Unorm

pub const ETC2RGB8A1UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ETC2RGB8A1UnormSrgb

pub const ETC2RGBA8Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ETC2RGBA8Unorm

pub const ETC2RGBA8UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ETC2RGBA8UnormSrgb

pub const EACR11Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_EACR11Unorm

pub const EACR11Snorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_EACR11Snorm

pub const EACRG11Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_EACRG11Unorm

pub const EACRG11Snorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_EACRG11Snorm

pub const ASTC4x4Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC4x4Unorm

pub const ASTC4x4UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC4x4UnormSrgb

pub const ASTC5x4Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC5x4Unorm

pub const ASTC5x4UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC5x4UnormSrgb

pub const ASTC5x5Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC5x5Unorm

pub const ASTC5x5UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC5x5UnormSrgb

pub const ASTC6x5Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC6x5Unorm

pub const ASTC6x5UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC6x5UnormSrgb

pub const ASTC6x6Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC6x6Unorm

pub const ASTC6x6UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC6x6UnormSrgb

pub const ASTC8x5Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC8x5Unorm

pub const ASTC8x5UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC8x5UnormSrgb

pub const ASTC8x6Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC8x6Unorm

pub const ASTC8x6UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC8x6UnormSrgb

pub const ASTC8x8Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC8x8Unorm

pub const ASTC8x8UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC8x8UnormSrgb

pub const ASTC10x5Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC10x5Unorm

pub const ASTC10x5UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC10x5UnormSrgb

pub const ASTC10x6Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC10x6Unorm

pub const ASTC10x6UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC10x6UnormSrgb

pub const ASTC10x8Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC10x8Unorm

pub const ASTC10x8UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC10x8UnormSrgb

pub const ASTC10x10Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC10x10Unorm

pub const ASTC10x10UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC10x10UnormSrgb

pub const ASTC12x10Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC12x10Unorm

pub const ASTC12x10UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC12x10UnormSrgb

pub const ASTC12x12Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC12x12Unorm

pub const ASTC12x12UnormSrgb: Self = raw::WGPUTextureFormat_WGPUTextureFormat_ASTC12x12UnormSrgb

pub const R16Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R16Unorm

pub const RG16Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RG16Unorm

pub const RGBA16Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RGBA16Unorm

pub const R16Snorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R16Snorm

pub const RG16Snorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RG16Snorm

pub const RGBA16Snorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_RGBA16Snorm

pub const R8BG8Biplanar420Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R8BG8Biplanar420Unorm

pub const R10X6BG10X6Biplanar420Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R10X6BG10X6Biplanar420Unorm

pub const R8BG8A8Triplanar420Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R8BG8A8Triplanar420Unorm

pub const R8BG8Biplanar422Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R8BG8Biplanar422Unorm

pub const R8BG8Biplanar444Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R8BG8Biplanar444Unorm

pub const R10X6BG10X6Biplanar422Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R10X6BG10X6Biplanar422Unorm

pub const R10X6BG10X6Biplanar444Unorm: Self = raw::WGPUTextureFormat_WGPUTextureFormat_R10X6BG10X6Biplanar444Unorm

pub const External: Self = raw::WGPUTextureFormat_WGPUTextureFormat_External

Trait Implementations§

Source§

impl Clone for WGPUTextureFormat

Source§

fn clone(&self) -> WGPUTextureFormat

Returns a duplicate 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 WGPUTextureFormat

Source§

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

Formats the value using the given formatter. Read more
§

impl Default for WGPUTextureFormat

§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Hash for WGPUTextureFormat

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for WGPUTextureFormat

Source§

fn cmp(&self, other: &WGPUTextureFormat) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for WGPUTextureFormat

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for WGPUTextureFormat

Source§

fn partial_cmp(&self, other: &WGPUTextureFormat) -> Option<Ordering>

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

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for WGPUTextureFormat

Source§

impl Eq for WGPUTextureFormat

Source§

impl StructuralPartialEq for WGPUTextureFormat

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.