[−][src]Struct glium::draw_parameters::TransformFeedbackPrimitivesWrittenQuery
Query that allows you to know the number of primitives generated by transform feedback.
Implementations
impl TransformFeedbackPrimitivesWrittenQuery
[src]
pub fn new<F: ?Sized>(
facade: &F
) -> Result<TransformFeedbackPrimitivesWrittenQuery, QueryCreationError> where
F: Facade,
[src]
facade: &F
) -> Result<TransformFeedbackPrimitivesWrittenQuery, QueryCreationError> where
F: Facade,
Builds a new query.
impl TransformFeedbackPrimitivesWrittenQuery
[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 Debug for TransformFeedbackPrimitivesWrittenQuery
[src]
impl GlObject for TransformFeedbackPrimitivesWrittenQuery
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TransformFeedbackPrimitivesWrittenQuery
impl !Send for TransformFeedbackPrimitivesWrittenQuery
impl !Sync for TransformFeedbackPrimitivesWrittenQuery
impl Unpin for TransformFeedbackPrimitivesWrittenQuery
impl !UnwindSafe for TransformFeedbackPrimitivesWrittenQuery
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,