pub struct GpuDevice { /* private fields */ }Expand description
One source-aware long-form GPU selector.
Implementations§
Source§impl GpuDevice
impl GpuDevice
pub const fn span(&self) -> SourceSpan
pub fn capabilities(&self) -> &[Located<String>]
pub const fn count(&self) -> Option<&Located<ComposeScalar>>
pub fn device_ids(&self) -> &[Located<String>]
pub const fn driver(&self) -> Option<&Located<String>>
pub const fn options(&self) -> Option<&GpuOptions>
pub fn unmodeled_fields(&self) -> &[FieldReference]
Trait Implementations§
impl Eq for GpuDevice
impl StructuralPartialEq for GpuDevice
Auto Trait Implementations§
impl Freeze for GpuDevice
impl RefUnwindSafe for GpuDevice
impl Send for GpuDevice
impl Sync for GpuDevice
impl Unpin for GpuDevice
impl UnsafeUnpin for GpuDevice
impl UnwindSafe for GpuDevice
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