[−][src]Struct processing::draw_parameters::SamplesPassedQuery
A query that allows you to know the number of samples written to the output during the draw operations where this query was active.
If you just want to know whether or not some samples have been written, you should use
a AnySamplesPassedQuery
query instead.
Methods
impl SamplesPassedQuery
[src]
pub fn new<F>(facade: &F) -> Result<SamplesPassedQuery, QueryCreationError> where
F: Facade + ?Sized,
[src]
F: Facade + ?Sized,
Builds a new query.
impl SamplesPassedQuery
[src]
pub fn is_ready(&self) -> bool
[src]
Queries the counter to see if the result is already available.
pub fn get(self) -> u32
[src]
Returns the value of the query. Blocks until it is available.
This function doesn't block if is_ready
would return true.
Note that you are strongly discouraged from calling this in the middle of the rendering process, as it may block for a long time.
Queries should either have their result written into a buffer, be used for conditional rendering, or stored and checked during the next frame.
pub fn to_buffer_u32(
&self,
target: BufferSlice<u32>
) -> Result<(), ToBufferError>
[src]
&self,
target: BufferSlice<u32>
) -> Result<(), ToBufferError>
Writes the result of the query to a buffer when it is available.
This function doesn't block. Instead it submits a commands to the GPU's commands queue and orders the GPU to write the result of the query to a buffer.
This operation is not necessarily supported everywhere.
Trait Implementations
impl<'a> From<&'a SamplesPassedQuery> for SamplesQueryParam<'a>
[src]
fn from(r: &'a SamplesPassedQuery) -> SamplesQueryParam<'a>
[src]
impl Debug for SamplesPassedQuery
[src]
impl GlObject for SamplesPassedQuery
[src]
Auto Trait Implementations
impl !Send for SamplesPassedQuery
impl !Sync for SamplesPassedQuery
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.