pub struct AnySamplesPassedQuery { /* private fields */ }
Expand description

A query type that allows you to know whether any sample has been written to the output during the operations executed with this query.

OpenGL

This is usually a query of type GL_ANY_SAMPLES_PASSED or GL_ANY_SAMPLES_PASSED_CONSERVATIVE.

However if the backend doesn’t support conservative queries, glium will automatically fall back to a non-conservative query. If the backend doesn’t support either types but supports GL_SAMPLES_PASSED, then glium will automatically use a GL_SAMPLES_PASSED query instead.

Implementations§

Builds a new query.

If you pass true for conservative, then OpenGL may use a less accurate algorithm, leading to a faster result but with more false positives.

Queries the counter to see if the result is already available.

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.

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§

Formats the value using the given formatter. Read more
Converts to this type from the input type.
The type of identifier for this object.
Returns the id of the object.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.