pub enum TransformFeedbackMode {
Points = 0,
Lines = 1,
Triangles = 4,
}
Expand description
Passed to beginTransformFeedback.
Variants§
Points = 0
Passed to drawElements or drawArrays to draw single points.
Lines = 1
Passed to drawElements or drawArrays to draw lines. Each vertex connects to the one after it.
Triangles = 4
Passed to drawElements or drawArrays to draw triangles. Each set of three vertices creates a separate triangle.
Trait Implementations§
Source§impl Clone for TransformFeedbackMode
impl Clone for TransformFeedbackMode
Source§fn clone(&self) -> TransformFeedbackMode
fn clone(&self) -> TransformFeedbackMode
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TransformFeedbackMode
impl Debug for TransformFeedbackMode
Source§impl From<TransformFeedbackMode> for JsValue
impl From<TransformFeedbackMode> for JsValue
Source§fn from(value: TransformFeedbackMode) -> Self
fn from(value: TransformFeedbackMode) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for TransformFeedbackMode
impl FromWasmAbi for TransformFeedbackMode
Source§impl IntoWasmAbi for TransformFeedbackMode
impl IntoWasmAbi for TransformFeedbackMode
Source§impl TryFromJsValue for TransformFeedbackMode
impl TryFromJsValue for TransformFeedbackMode
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <TransformFeedbackMode as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <TransformFeedbackMode as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for TransformFeedbackMode
impl VectorFromWasmAbi for TransformFeedbackMode
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[TransformFeedbackMode]>
Source§impl VectorIntoJsValue for TransformFeedbackMode
impl VectorIntoJsValue for TransformFeedbackMode
fn vector_into_jsvalue(vector: Box<[TransformFeedbackMode]>) -> JsValue
Source§impl VectorIntoWasmAbi for TransformFeedbackMode
impl VectorIntoWasmAbi for TransformFeedbackMode
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[TransformFeedbackMode]>) -> Self::Abi
Source§impl WasmDescribeVector for TransformFeedbackMode
impl WasmDescribeVector for TransformFeedbackMode
impl Copy for TransformFeedbackMode
Auto Trait Implementations§
impl Freeze for TransformFeedbackMode
impl RefUnwindSafe for TransformFeedbackMode
impl Send for TransformFeedbackMode
impl Sync for TransformFeedbackMode
impl Unpin for TransformFeedbackMode
impl UnwindSafe for TransformFeedbackMode
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§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
.