pub struct ConditionalRendering<'a> {
pub query: SamplesQueryParam<'a>,
pub wait: bool,
pub per_region: bool,
}Expand description
Condition whether to render or not.
Fields§
§query: SamplesQueryParam<'a>The query to use.
wait: boolIf true, the GPU will wait until the query result has been obtained. If false, the GPU is free to ignore the query and draw anyway.
per_region: boolIf true, only samples that match those that were written with the query active will be drawn.
Trait Implementations§
Source§impl<'a> Clone for ConditionalRendering<'a>
impl<'a> Clone for ConditionalRendering<'a>
Source§fn clone(&self) -> ConditionalRendering<'a>
fn clone(&self) -> ConditionalRendering<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ConditionalRendering<'a>
impl<'a> Debug for ConditionalRendering<'a>
impl<'a> Copy for ConditionalRendering<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConditionalRendering<'a>
impl<'a> !RefUnwindSafe for ConditionalRendering<'a>
impl<'a> !Send for ConditionalRendering<'a>
impl<'a> !Sync for ConditionalRendering<'a>
impl<'a> Unpin for ConditionalRendering<'a>
impl<'a> !UnwindSafe for ConditionalRendering<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
Source§unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
Prepares an output buffer, then turns this buffer into an
Owned.
User-provided closure F must only write to and not read from &mut Self.Source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
Source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
Source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
Source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.