pub struct DeviceInfo {
pub identity: DeviceIdentity,
pub capabilities: Capabilities,
pub limits: DeviceLimits,
}Fields§
§identity: DeviceIdentity§capabilities: Capabilities§limits: DeviceLimitsImplementations§
Source§impl DeviceInfo
impl DeviceInfo
Sourcepub const fn validate(self) -> Result<(), DeviceInfoError>
pub const fn validate(self) -> Result<(), DeviceInfoError>
Validate immutable provider metadata once, before constructing live object state.
Unknown capability bits remain representable for forward-compatible diagnostics. Assigned reserved bits are rejected because this version cannot enforce their ownership and synchronization rules.
Sourcepub fn validate_context_desc(
self,
desc: ContextDesc,
) -> Result<(), BackendError>
pub fn validate_context_desc( self, desc: ContextDesc, ) -> Result<(), BackendError>
Validate context intent before backend invocation.
This contract currently reserves every nonempty context flag set.
Sourcepub fn validate_buffer_desc(self, desc: BufferDesc) -> Result<(), BackendError>
pub fn validate_buffer_desc(self, desc: BufferDesc) -> Result<(), BackendError>
Validate allocation size and memory-domain support before backend invocation.
Sourcepub fn validate_buffer_info(
self,
requested: BufferDesc,
actual: BufferInfo,
) -> Result<(), BackendError>
pub fn validate_buffer_info( self, requested: BufferDesc, actual: BufferInfo, ) -> Result<(), BackendError>
Validate that a backend allocation describes the request it was asked to satisfy.
Sourcepub fn validate_queue_desc(self, desc: QueueDesc) -> Result<(), BackendError>
pub fn validate_queue_desc(self, desc: QueueDesc) -> Result<(), BackendError>
Validate execution-queue intent before backend invocation.
This contract currently reserves every nonempty execution-queue flag set.
Sourcepub fn validate_event_cancellation(self) -> Result<(), BackendError>
pub fn validate_event_cancellation(self) -> Result<(), BackendError>
Validate event-cancellation support before backend invocation.
Trait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§fn clone(&self) -> DeviceInfo
fn clone(&self) -> DeviceInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeviceInfo
Source§impl Debug for DeviceInfo
impl Debug for DeviceInfo
impl Eq for DeviceInfo
Source§impl PartialEq for DeviceInfo
impl PartialEq for DeviceInfo
impl StructuralPartialEq for DeviceInfo
Auto Trait Implementations§
impl Freeze for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnsafeUnpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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