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
sourceimpl GpuVertexFormat
impl GpuVertexFormat
pub fn from_js_value(obj: &JsValue) -> Option<GpuVertexFormat>
Trait Implementations
sourceimpl Clone for GpuVertexFormat
impl Clone for GpuVertexFormat
sourcefn clone(&self) -> GpuVertexFormat
fn clone(&self) -> GpuVertexFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GpuVertexFormat
impl Debug for GpuVertexFormat
sourceimpl From<GpuVertexFormat> for JsValue
impl From<GpuVertexFormat> for JsValue
sourcefn from(obj: GpuVertexFormat) -> JsValue
fn from(obj: GpuVertexFormat) -> JsValue
Converts to this type from the input type.
sourceimpl FromWasmAbi for GpuVertexFormat
impl FromWasmAbi for GpuVertexFormat
sourceimpl IntoWasmAbi for GpuVertexFormat
impl IntoWasmAbi for GpuVertexFormat
sourceimpl OptionFromWasmAbi for GpuVertexFormat
impl OptionFromWasmAbi for GpuVertexFormat
sourceimpl OptionIntoWasmAbi for GpuVertexFormat
impl OptionIntoWasmAbi for GpuVertexFormat
sourceimpl PartialEq<GpuVertexFormat> for GpuVertexFormat
impl PartialEq<GpuVertexFormat> for GpuVertexFormat
sourcefn 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 ==
. Read more
sourceimpl WasmDescribe for GpuVertexFormat
impl WasmDescribe for GpuVertexFormat
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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
sourcefn 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
. Read more