#[repr(C)]pub struct QueryDesc {
pub query: QueryType,
pub misc_flags: u32,
}Fields§
§query: QueryType§misc_flags: u32Implementations§
Source§impl QueryDesc
impl QueryDesc
pub fn new(query: QueryType, misc_flags: u32) -> Self
pub fn event() -> Self
pub fn timestamp() -> Self
pub fn timestamp_disjoint() -> Self
pub fn occlusion() -> Self
Sourcepub fn occlusion_predicate(hint: bool) -> Self
pub fn occlusion_predicate(hint: bool) -> Self
§Parameters
hint: If true, tells the hardware that if it is not yet sure if something is hidden or not to draw it anyway.
Note that predication data cannot be returned to your application via crate::DeviceContext::get_data when using this flag.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryDesc
impl RefUnwindSafe for QueryDesc
impl Send for QueryDesc
impl Sync for QueryDesc
impl Unpin for QueryDesc
impl UnsafeUnpin for QueryDesc
impl UnwindSafe for QueryDesc
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