Struct nannou::ui::backend::glium::glium::draw_parameters::TransformFeedbackPrimitivesWrittenQuery [−][src]
pub struct TransformFeedbackPrimitivesWrittenQuery { /* fields omitted */ }
Query that allows you to know the number of primitives generated by transform feedback.
Methods
impl TransformFeedbackPrimitivesWrittenQuery
[src]
impl TransformFeedbackPrimitivesWrittenQuery
pub fn new<F>(
facade: &F
) -> Result<TransformFeedbackPrimitivesWrittenQuery, QueryCreationError> where
F: Facade + ?Sized,
[src]
pub fn new<F>(
facade: &F
) -> Result<TransformFeedbackPrimitivesWrittenQuery, QueryCreationError> where
F: Facade + ?Sized,
Builds a new query.
impl TransformFeedbackPrimitivesWrittenQuery
[src]
impl TransformFeedbackPrimitivesWrittenQuery
pub fn is_ready(&self) -> bool
[src]
pub fn is_ready(&self) -> bool
Queries the counter to see if the result is already available.
pub fn get(self) -> u32
[src]
pub 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.
pub fn to_buffer_u32(
&self,
target: BufferSlice<u32>
) -> Result<(), ToBufferError>
[src]
pub fn to_buffer_u32(
&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 Debug for TransformFeedbackPrimitivesWrittenQuery
[src]
impl Debug for TransformFeedbackPrimitivesWrittenQuery
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl GlObject for TransformFeedbackPrimitivesWrittenQuery
[src]
impl GlObject for TransformFeedbackPrimitivesWrittenQuery
Auto Trait Implementations
impl !Send for TransformFeedbackPrimitivesWrittenQuery
impl !Send for TransformFeedbackPrimitivesWrittenQuery
impl !Sync for TransformFeedbackPrimitivesWrittenQuery
impl !Sync for TransformFeedbackPrimitivesWrittenQuery