Struct glium::draw_parameters::PrimitivesGeneratedQuery [] [src]

pub struct PrimitivesGeneratedQuery {
    // some fields omitted
}

Query that allows you to know the number of primitives generated by the geometry shader. Will stay at 0 if you use it without any active geometry shader.

Methods

impl PrimitivesGeneratedQuery

fn new<F>(facade: &F) -> Result<PrimitivesGeneratedQuery, QueryCreationError> where F: Facade

Builds a new query.

impl PrimitivesGeneratedQuery

fn is_ready(&self) -> bool

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

fn get(self) -> u32

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.

Trait Implementations

impl GlObject for PrimitivesGeneratedQuery

type Id = GLuint

fn get_id(&self) -> GLuint

Derived Implementations

impl Debug for PrimitivesGeneratedQuery

fn fmt(&self, __arg_0: &mut Formatter) -> Result