Enum webgl_rs::glenum::QueryTarget
source · pub enum QueryTarget {
AnySamplesPassed,
AnySamplesPassedConservative,
TransformFeedbackPrimitivesWritten,
}
Expand description
Constants passed to beginQuery
Variants§
AnySamplesPassed
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
Same as above above, but less accurate and faster version.
TransformFeedbackPrimitivesWritten
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 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 QueryTarget
impl Debug for QueryTarget
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
impl Copy for QueryTarget
Auto Trait Implementations§
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> 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
. Read more