GPUTextureFormat

Enum GPUTextureFormat 

Source
pub enum GPUTextureFormat {
Show 101 variants R8UNORM, R8SNORM, R8UINT, R8SINT, R16UNORM, R16SNORM, R16UINT, R16SINT, R16FLOAT, RG8UNORM, RG8SNORM, RG8UINT, RG8SINT, R32UINT, R32SINT, R32FLOAT, RG16UNORM, RG16SNORM, RG16UINT, RG16SINT, RG16FLOAT, RGBA8UNORM, RGBA8UNORM_SRGB, RGBA8SNORM, RGBA8UINT, RGBA8SINT, BGRA8UNORM, BGRA8UNORM_SRGB, RGB9E5UFLOAT, RGB10A2UINT, RGB10A2UNORM, RG11B10UFLOAT, RG32UINT, RG32SINT, RG32FLOAT, RGBA16UNORM, RGBA16SNORM, RGBA16UINT, RGBA16SINT, RGBA16FLOAT, RGBA32UINT, RGBA32SINT, RGBA32FLOAT, STENCIL8, DEPTH16UNORM, DEPTH24PLUS, DEPTH24PLUS_STENCIL8, DEPTH32FLOAT, DEPTH32FLOAT_STENCIL8, BC1_RGBA_UNORM, BC1_RGBA_UNORM_SRGB, BC2_RGBA_UNORM, BC2_RGBA_UNORM_SRGB, BC3_RGBA_UNORM, BC3_RGBA_UNORM_SRGB, BC4_R_UNORM, BC4_R_SNORM, BC5_RG_UNORM, BC5_RG_SNORM, BC6H_RGB_UFLOAT, BC6H_RGB_FLOAT, BC7_RGBA_UNORM, BC7_RGBA_UNORM_SRGB, ETC2_RGB8UNORM, ETC2_RGB8UNORM_SRGB, ETC2_RGB8A1UNORM, ETC2_RGB8A1UNORM_SRGB, ETC2_RGBA8UNORM, ETC2_RGBA8UNORM_SRGB, EAC_R11UNORM, EAC_R11SNORM, EAC_RG11UNORM, EAC_RG11SNORM, ASTC_4X4_UNORM, ASTC_4X4_UNORM_SRGB, ASTC_5X4_UNORM, ASTC_5X4_UNORM_SRGB, ASTC_5X5_UNORM, ASTC_5X5_UNORM_SRGB, ASTC_6X5_UNORM, ASTC_6X5_UNORM_SRGB, ASTC_6X6_UNORM, ASTC_6X6_UNORM_SRGB, ASTC_8X5_UNORM, ASTC_8X5_UNORM_SRGB, ASTC_8X6_UNORM, ASTC_8X6_UNORM_SRGB, ASTC_8X8_UNORM, ASTC_8X8_UNORM_SRGB, ASTC_10X5_UNORM, ASTC_10X5_UNORM_SRGB, ASTC_10X6_UNORM, ASTC_10X6_UNORM_SRGB, ASTC_10X8_UNORM, ASTC_10X8_UNORM_SRGB, ASTC_10X10_UNORM, ASTC_10X10_UNORM_SRGB, ASTC_12X10_UNORM, ASTC_12X10_UNORM_SRGB, ASTC_12X12_UNORM, ASTC_12X12_UNORM_SRGB,
}

Variants§

§

R8UNORM

§

R8SNORM

§

R8UINT

§

R8SINT

§

R16UNORM

§

R16SNORM

§

R16UINT

§

R16SINT

§

R16FLOAT

§

RG8UNORM

§

RG8SNORM

§

RG8UINT

§

RG8SINT

§

R32UINT

§

R32SINT

§

R32FLOAT

§

RG16UNORM

§

RG16SNORM

§

RG16UINT

§

RG16SINT

§

RG16FLOAT

§

RGBA8UNORM

§

RGBA8UNORM_SRGB

§

RGBA8SNORM

§

RGBA8UINT

§

RGBA8SINT

§

BGRA8UNORM

§

BGRA8UNORM_SRGB

§

RGB9E5UFLOAT

§

RGB10A2UINT

§

RGB10A2UNORM

§

RG11B10UFLOAT

§

RG32UINT

§

RG32SINT

§

RG32FLOAT

§

RGBA16UNORM

§

RGBA16SNORM

§

RGBA16UINT

§

RGBA16SINT

§

RGBA16FLOAT

§

RGBA32UINT

§

RGBA32SINT

§

RGBA32FLOAT

§

STENCIL8

§

DEPTH16UNORM

§

DEPTH24PLUS

§

DEPTH24PLUS_STENCIL8

§

DEPTH32FLOAT

§

DEPTH32FLOAT_STENCIL8

§

BC1_RGBA_UNORM

§

BC1_RGBA_UNORM_SRGB

§

BC2_RGBA_UNORM

§

BC2_RGBA_UNORM_SRGB

§

BC3_RGBA_UNORM

§

BC3_RGBA_UNORM_SRGB

§

BC4_R_UNORM

§

BC4_R_SNORM

§

BC5_RG_UNORM

§

BC5_RG_SNORM

§

BC6H_RGB_UFLOAT

§

BC6H_RGB_FLOAT

§

BC7_RGBA_UNORM

§

BC7_RGBA_UNORM_SRGB

§

ETC2_RGB8UNORM

§

ETC2_RGB8UNORM_SRGB

§

ETC2_RGB8A1UNORM

§

ETC2_RGB8A1UNORM_SRGB

§

ETC2_RGBA8UNORM

§

ETC2_RGBA8UNORM_SRGB

§

EAC_R11UNORM

§

EAC_R11SNORM

§

EAC_RG11UNORM

§

EAC_RG11SNORM

§

ASTC_4X4_UNORM

§

ASTC_4X4_UNORM_SRGB

§

ASTC_5X4_UNORM

§

ASTC_5X4_UNORM_SRGB

§

ASTC_5X5_UNORM

§

ASTC_5X5_UNORM_SRGB

§

ASTC_6X5_UNORM

§

ASTC_6X5_UNORM_SRGB

§

ASTC_6X6_UNORM

§

ASTC_6X6_UNORM_SRGB

§

ASTC_8X5_UNORM

§

ASTC_8X5_UNORM_SRGB

§

ASTC_8X6_UNORM

§

ASTC_8X6_UNORM_SRGB

§

ASTC_8X8_UNORM

§

ASTC_8X8_UNORM_SRGB

§

ASTC_10X5_UNORM

§

ASTC_10X5_UNORM_SRGB

§

ASTC_10X6_UNORM

§

ASTC_10X6_UNORM_SRGB

§

ASTC_10X8_UNORM

§

ASTC_10X8_UNORM_SRGB

§

ASTC_10X10_UNORM

§

ASTC_10X10_UNORM_SRGB

§

ASTC_12X10_UNORM

§

ASTC_12X10_UNORM_SRGB

§

ASTC_12X12_UNORM

§

ASTC_12X12_UNORM_SRGB

Trait Implementations§

Source§

impl Clone for GPUTextureFormat

Source§

fn clone(&self) -> GPUTextureFormat

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 GPUTextureFormat

Source§

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

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

impl From<&GPUTextureFormat> for Any

Source§

fn from(s: &GPUTextureFormat) -> Any

Converts to this type from the input type.
Source§

impl From<GPUTextureFormat> for Any

Source§

fn from(s: GPUTextureFormat) -> Any

Converts to this type from the input type.
Source§

impl FromVal for GPUTextureFormat

Source§

fn from_val(v: &Any) -> Self

Creates a Val object from another
Source§

fn take_ownership(v: AnyHandle) -> Self

Takes the ownership of a handle
Source§

fn as_handle(&self) -> AnyHandle

Returns the raw js handle
Source§

impl PartialEq for GPUTextureFormat

Source§

fn eq(&self, other: &GPUTextureFormat) -> 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 GPUTextureFormat

Source§

fn partial_cmp(&self, other: &GPUTextureFormat) -> 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 GPUTextureFormat

Source§

impl StructuralPartialEq for GPUTextureFormat

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

Source§

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

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.