Enum web_sys::GpuVertexFormat
source · pub enum GpuVertexFormat {
Show 30 variants
Uint8x2,
Uint8x4,
Sint8x2,
Sint8x4,
Unorm8x2,
Unorm8x4,
Snorm8x2,
Snorm8x4,
Uint16x2,
Uint16x4,
Sint16x2,
Sint16x4,
Unorm16x2,
Unorm16x4,
Snorm16x2,
Snorm16x4,
Float16x2,
Float16x4,
Float32,
Float32x2,
Float32x3,
Float32x4,
Uint32,
Uint32x2,
Uint32x3,
Uint32x4,
Sint32,
Sint32x2,
Sint32x3,
Sint32x4,
// some variants omitted
}
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§
Uint8x2
Uint8x4
Sint8x2
Sint8x4
Unorm8x2
Unorm8x4
Snorm8x2
Snorm8x4
Uint16x2
Uint16x4
Sint16x2
Sint16x4
Unorm16x2
Unorm16x4
Snorm16x2
Snorm16x4
Float16x2
Float16x4
Float32
Float32x2
Float32x3
Float32x4
Uint32
Uint32x2
Uint32x3
Uint32x4
Sint32
Sint32x2
Sint32x3
Sint32x4
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(obj: GpuVertexFormat) -> JsValue
fn from(obj: GpuVertexFormat) -> JsValue
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<GpuVertexFormat> for GpuVertexFormat
impl PartialEq<GpuVertexFormat> for GpuVertexFormat
source§fn eq(&self, other: &GpuVertexFormat) -> bool
fn eq(&self, other: &GpuVertexFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for GpuVertexFormat
impl Eq for GpuVertexFormat
impl StructuralEq for GpuVertexFormat
impl StructuralPartialEq for GpuVertexFormat
Auto Trait Implementations§
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere T: IntoWasmAbi,
§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
.