pub struct Query<'a, B> where
B: ?Sized, { /* private fields */ }
Expand description
Query object.
Such an object allows to query various parts of the backend and GPU.
Implementations
sourceimpl<'a, B> Query<'a, B> where
B: ?Sized + QueryBackend,
impl<'a, B> Query<'a, B> where
B: ?Sized + QueryBackend,
sourcepub fn new(ctxt: &'a mut impl GraphicsContext<Backend = B>) -> Self
pub fn new(ctxt: &'a mut impl GraphicsContext<Backend = B>) -> Self
Create a new Query
for a given context.
The implementation author, most of the time referred to as “vendor” or “compagny” responsible for the driver the implementation uses.
sourcepub fn backend_name(&self) -> Result<String, QueryError>
pub fn backend_name(&self) -> Result<String, QueryError>
The backend name.
sourcepub fn backend_version(&self) -> Result<String, QueryError>
pub fn backend_version(&self) -> Result<String, QueryError>
The backend version.
sourcepub fn backend_shading_lang_version(&self) -> Result<String, QueryError>
pub fn backend_shading_lang_version(&self) -> Result<String, QueryError>
The shading language version.
sourcepub fn max_texture_array_elements(&self) -> Result<usize, QueryError>
pub fn max_texture_array_elements(&self) -> Result<usize, QueryError>
Maximum number of elements a texture array can hold.
Trait Implementations
Auto Trait Implementations
impl<'a, B: ?Sized> RefUnwindSafe for Query<'a, B> where
B: RefUnwindSafe,
impl<'a, B: ?Sized> Send for Query<'a, B> where
B: Sync,
impl<'a, B: ?Sized> Sync for Query<'a, B> where
B: Sync,
impl<'a, B: ?Sized> Unpin for Query<'a, B>
impl<'a, B: ?Sized> UnwindSafe for Query<'a, B> where
B: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more