pub enum QueryId {
VendorId,
DeviceId,
VendorVersion,
IsTotalTimeSupported,
MaximumInflightParams,
MagmaQueryTotalTime,
VendorQuery0,
// some variants omitted
}
Expand description
Types of information about the hardware and driver that can be queried from the Magma system driver. Vendor-specific ID numbers may be used, but those IDs will be listed elsewhere.
Variants§
VendorId
Returns the hardware vendor ID (simple result) - should be the PCI ID of the hardware vendor if possible, or the Khronos vendor ID otherwise.
DeviceId
Returns the hardware device ID (simple result)
VendorVersion
Returns the version of the vendor interfaces supported by the system driver.
IsTotalTimeSupported
Returns true if MAGMA_QUERY_TOTAL_TIME is supported (simple result)
MaximumInflightParams
Upper 32bits: max inflight messages, lower 32bits: max inflight memory (MB) (simple result)
MagmaQueryTotalTime
Returns a struct magma_total_time_query_result (buffer result); see: src/graphics/lib/magma/include/magma/magma_common_defs.h
VendorQuery0
Vendor specific query IDs start here
Implementations§
Source§impl QueryId
impl QueryId
pub fn from_primitive(prim: u64) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: u64) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> u64
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<QueryId, D> for QueryId
impl<D: ResourceDialect> Decode<QueryId, D> for QueryId
Source§impl Ord for QueryId
impl Ord for QueryId
Source§impl PartialOrd for QueryId
impl PartialOrd for QueryId
Source§impl TypeMarker for QueryId
impl TypeMarker for QueryId
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for QueryId
impl ValueTypeMarker for QueryId
impl Copy for QueryId
impl Eq for QueryId
impl StructuralPartialEq for QueryId
Auto Trait Implementations§
impl Freeze for QueryId
impl RefUnwindSafe for QueryId
impl Send for QueryId
impl Sync for QueryId
impl Unpin for QueryId
impl UnwindSafe for QueryId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)