pub enum QueryTarget {
AnySamplesPassed = 35_887,
AnySamplesPassedConservative = 36_202,
TransformFeedbackPrimitivesWritten = 35_976,
}
Expand description
Constants passed to beginQuery
Variants§
AnySamplesPassed = 35_887
Specifies an occlusion query: these queries detect whether an object is visible (whether the scoped drawing commands pass the depth test and if so, how many samples pass).
AnySamplesPassedConservative = 36_202
Same as above above, but less accurate and faster version.
TransformFeedbackPrimitivesWritten = 35_976
Number of primitives that are written to transform feedback buffers.
Trait Implementations§
Source§impl Clone for QueryTarget
impl Clone for QueryTarget
Source§fn clone(&self) -> QueryTarget
fn clone(&self) -> QueryTarget
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 QueryTarget
impl Debug for QueryTarget
Source§impl From<QueryTarget> for JsValue
impl From<QueryTarget> for JsValue
Source§fn from(value: QueryTarget) -> Self
fn from(value: QueryTarget) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for QueryTarget
impl FromWasmAbi for QueryTarget
Source§impl IntoWasmAbi for QueryTarget
impl IntoWasmAbi for QueryTarget
Source§impl OptionFromWasmAbi for QueryTarget
impl OptionFromWasmAbi for QueryTarget
Source§impl OptionIntoWasmAbi for QueryTarget
impl OptionIntoWasmAbi for QueryTarget
Source§impl TryFromJsValue for QueryTarget
impl TryFromJsValue for QueryTarget
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <QueryTarget as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <QueryTarget as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for QueryTarget
impl VectorFromWasmAbi for QueryTarget
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[QueryTarget]>
Source§impl VectorIntoJsValue for QueryTarget
impl VectorIntoJsValue for QueryTarget
fn vector_into_jsvalue(vector: Box<[QueryTarget]>) -> JsValue
Source§impl VectorIntoWasmAbi for QueryTarget
impl VectorIntoWasmAbi for QueryTarget
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[QueryTarget]>) -> Self::Abi
Source§impl WasmDescribeVector for QueryTarget
impl WasmDescribeVector for QueryTarget
impl Copy for QueryTarget
Auto Trait Implementations§
impl Freeze for QueryTarget
impl RefUnwindSafe for QueryTarget
impl Send for QueryTarget
impl Sync for QueryTarget
impl Unpin for QueryTarget
impl UnwindSafe for QueryTarget
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
.