Trait wgpu_core::resource::ParentDevice

source ·
pub trait ParentDevice: Labeled {
    // Required method
    fn device(&self) -> &Arc<Device>;

    // Provided methods
    fn is_equal(self: &Arc<Self>, other: &Arc<Self>) -> bool { ... }
    fn same_device_as<O: ParentDevice>(
        &self,
        other: &O,
    ) -> Result<(), DeviceError> { ... }
    fn same_device(&self, device: &Device) -> Result<(), DeviceError> { ... }
}

Required Methods§

source

fn device(&self) -> &Arc<Device>

Provided Methods§

source

fn is_equal(self: &Arc<Self>, other: &Arc<Self>) -> bool

source

fn same_device_as<O: ParentDevice>(&self, other: &O) -> Result<(), DeviceError>

source

fn same_device(&self, device: &Device) -> Result<(), DeviceError>

Object Safety§

This trait is not object safe.

Implementors§