pub struct WasmMeshBuffers { /* private fields */ }Expand description
Tessellation output as typed arrays; getters consume the buffers.
Implementations§
Source§impl WasmMeshBuffers
impl WasmMeshBuffers
pub fn take_positions(&mut self) -> Vec<f64>
pub fn take_normals(&mut self) -> Vec<f64>
pub fn take_indices(&mut self) -> Vec<u32>
pub fn take_face_ids(&mut self) -> Vec<u32>
Trait Implementations§
Source§impl From<WasmMeshBuffers> for JsValue
impl From<WasmMeshBuffers> for JsValue
Source§fn from(value: WasmMeshBuffers) -> Self
fn from(value: WasmMeshBuffers) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmMeshBuffers
impl FromWasmAbi for WasmMeshBuffers
Source§impl IntoWasmAbi for WasmMeshBuffers
impl IntoWasmAbi for WasmMeshBuffers
Source§impl LongRefFromWasmAbi for WasmMeshBuffers
impl LongRefFromWasmAbi for WasmMeshBuffers
Source§type Abi = WasmPtr<WasmRefCell<WasmMeshBuffers>>
type Abi = WasmPtr<WasmRefCell<WasmMeshBuffers>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<WasmMeshBuffers>
type Anchor = RcRef<WasmMeshBuffers>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for WasmMeshBuffers
impl OptionFromWasmAbi for WasmMeshBuffers
Source§impl OptionIntoWasmAbi for WasmMeshBuffers
impl OptionIntoWasmAbi for WasmMeshBuffers
Source§impl RefFromWasmAbi for WasmMeshBuffers
impl RefFromWasmAbi for WasmMeshBuffers
Source§type Abi = WasmPtr<WasmRefCell<WasmMeshBuffers>>
type Abi = WasmPtr<WasmRefCell<WasmMeshBuffers>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<WasmMeshBuffers>
type Anchor = RcRef<WasmMeshBuffers>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for WasmMeshBuffers
impl RefMutFromWasmAbi for WasmMeshBuffers
Source§type Abi = WasmPtr<WasmRefCell<WasmMeshBuffers>>
type Abi = WasmPtr<WasmRefCell<WasmMeshBuffers>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<WasmMeshBuffers>
type Anchor = RcRefMut<WasmMeshBuffers>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl SupportsConstructor for WasmMeshBuffers
impl SupportsInstanceProperty for WasmMeshBuffers
impl SupportsStaticProperty for WasmMeshBuffers
Source§impl TryFromJsValue for WasmMeshBuffers
impl TryFromJsValue for WasmMeshBuffers
Source§impl VectorFromWasmAbi for WasmMeshBuffers
impl VectorFromWasmAbi for WasmMeshBuffers
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmMeshBuffers]>
Source§impl VectorIntoWasmAbi for WasmMeshBuffers
impl VectorIntoWasmAbi for WasmMeshBuffers
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmMeshBuffers]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmMeshBuffers
impl WasmDescribeVector for WasmMeshBuffers
Auto Trait Implementations§
impl Freeze for WasmMeshBuffers
impl RefUnwindSafe for WasmMeshBuffers
impl Send for WasmMeshBuffers
impl Sync for WasmMeshBuffers
impl Unpin for WasmMeshBuffers
impl UnsafeUnpin for WasmMeshBuffers
impl UnwindSafe for WasmMeshBuffers
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,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§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.