#[non_exhaustive]#[repr(u32)]pub enum GpuVertexFormat {
Show 31 variants
Uint8x2 = 0,
Uint8x4 = 1,
Sint8x2 = 2,
Sint8x4 = 3,
Unorm8x2 = 4,
Unorm8x4 = 5,
Snorm8x2 = 6,
Snorm8x4 = 7,
Uint16x2 = 8,
Uint16x4 = 9,
Sint16x2 = 10,
Sint16x4 = 11,
Unorm16x2 = 12,
Unorm16x4 = 13,
Snorm16x2 = 14,
Snorm16x4 = 15,
Float16x2 = 16,
Float16x4 = 17,
Float32 = 18,
Float32x2 = 19,
Float32x3 = 20,
Float32x4 = 21,
Uint32 = 22,
Uint32x2 = 23,
Uint32x3 = 24,
Uint32x4 = 25,
Sint32 = 26,
Sint32x2 = 27,
Sint32x3 = 28,
Sint32x4 = 29,
Unorm1010102 = 30,
}
Expand description
The GpuVertexFormat
enum.
This API requires the following crate features to be activated: GpuVertexFormat
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Uint8x2 = 0
Uint8x4 = 1
Sint8x2 = 2
Sint8x4 = 3
Unorm8x2 = 4
Unorm8x4 = 5
Snorm8x2 = 6
Snorm8x4 = 7
Uint16x2 = 8
Uint16x4 = 9
Sint16x2 = 10
Sint16x4 = 11
Unorm16x2 = 12
Unorm16x4 = 13
Snorm16x2 = 14
Snorm16x4 = 15
Float16x2 = 16
Float16x4 = 17
Float32 = 18
Float32x2 = 19
Float32x3 = 20
Float32x4 = 21
Uint32 = 22
Uint32x2 = 23
Uint32x3 = 24
Uint32x4 = 25
Sint32 = 26
Sint32x2 = 27
Sint32x3 = 28
Sint32x4 = 29
Unorm1010102 = 30
Implementations§
source§impl GpuVertexFormat
impl GpuVertexFormat
pub fn from_js_value(obj: &JsValue) -> Option<GpuVertexFormat>
Trait Implementations§
source§impl Clone for GpuVertexFormat
impl Clone for GpuVertexFormat
source§fn clone(&self) -> GpuVertexFormat
fn clone(&self) -> GpuVertexFormat
Returns a copy 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 GpuVertexFormat
impl Debug for GpuVertexFormat
source§impl From<GpuVertexFormat> for JsValue
impl From<GpuVertexFormat> for JsValue
source§fn from(val: GpuVertexFormat) -> Self
fn from(val: GpuVertexFormat) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for GpuVertexFormat
impl FromWasmAbi for GpuVertexFormat
source§impl IntoWasmAbi for GpuVertexFormat
impl IntoWasmAbi for GpuVertexFormat
source§impl OptionFromWasmAbi for GpuVertexFormat
impl OptionFromWasmAbi for GpuVertexFormat
source§impl OptionIntoWasmAbi for GpuVertexFormat
impl OptionIntoWasmAbi for GpuVertexFormat
source§impl PartialEq for GpuVertexFormat
impl PartialEq for GpuVertexFormat
impl Copy for GpuVertexFormat
impl Eq for GpuVertexFormat
impl StructuralPartialEq for GpuVertexFormat
Auto Trait Implementations§
impl Freeze for GpuVertexFormat
impl RefUnwindSafe for GpuVertexFormat
impl Send for GpuVertexFormat
impl Sync for GpuVertexFormat
impl Unpin for GpuVertexFormat
impl UnwindSafe for GpuVertexFormat
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.