pub trait DeviceChild: DeviceChildHandle {
type ConcreteDevice: Device;
// Required method
fn device(&self) -> &Self::ConcreteDevice;
}
Expand description
Child of a device object
Required Associated Types§
Sourcetype ConcreteDevice: Device
type ConcreteDevice: Device
A concrete type of the parent device object.
Required Methods§
Sourcefn device(&self) -> &Self::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Retrieve a reference to a device object that creates this object
Implementations on Foreign Types§
Source§impl<'s, T> DeviceChild for &'s Twhere
T: DeviceChild + ?Sized,
impl<'s, T> DeviceChild for &'s Twhere
T: DeviceChild + ?Sized,
type ConcreteDevice = <T as DeviceChild>::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Source§impl<'s, T> DeviceChild for &'s mut Twhere
T: DeviceChild + ?Sized,
impl<'s, T> DeviceChild for &'s mut Twhere
T: DeviceChild + ?Sized,
type ConcreteDevice = <T as DeviceChild>::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Source§impl<T> DeviceChild for Box<T>where
T: DeviceChild + ?Sized,
impl<T> DeviceChild for Box<T>where
T: DeviceChild + ?Sized,
type ConcreteDevice = <T as DeviceChild>::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Source§impl<T> DeviceChild for Rc<T>where
T: DeviceChild + ?Sized,
impl<T> DeviceChild for Rc<T>where
T: DeviceChild + ?Sized,
type ConcreteDevice = <T as DeviceChild>::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Source§impl<T> DeviceChild for Arc<T>where
T: DeviceChild + ?Sized,
impl<T> DeviceChild for Arc<T>where
T: DeviceChild + ?Sized,
type ConcreteDevice = <T as DeviceChild>::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Source§impl<T> DeviceChild for Ref<'_, T>where
T: DeviceChild + ?Sized,
impl<T> DeviceChild for Ref<'_, T>where
T: DeviceChild + ?Sized,
type ConcreteDevice = <T as DeviceChild>::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Source§impl<T> DeviceChild for RefMut<'_, T>where
T: DeviceChild + ?Sized,
impl<T> DeviceChild for RefMut<'_, T>where
T: DeviceChild + ?Sized,
type ConcreteDevice = <T as DeviceChild>::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Source§impl<T> DeviceChild for ManuallyDrop<T>where
T: DeviceChild,
impl<T> DeviceChild for ManuallyDrop<T>where
T: DeviceChild,
type ConcreteDevice = <T as DeviceChild>::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Source§impl<T> DeviceChild for MutexGuard<'_, T>where
T: DeviceChild + ?Sized,
impl<T> DeviceChild for MutexGuard<'_, T>where
T: DeviceChild + ?Sized,
type ConcreteDevice = <T as DeviceChild>::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Source§impl<T> DeviceChild for RwLockReadGuard<'_, T>where
T: DeviceChild + ?Sized,
impl<T> DeviceChild for RwLockReadGuard<'_, T>where
T: DeviceChild + ?Sized,
type ConcreteDevice = <T as DeviceChild>::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Source§impl<T> DeviceChild for RwLockWriteGuard<'_, T>where
T: DeviceChild + ?Sized,
impl<T> DeviceChild for RwLockWriteGuard<'_, T>where
T: DeviceChild + ?Sized,
type ConcreteDevice = <T as DeviceChild>::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Source§impl<T> DeviceChild for MutexGuard<'_, T>where
T: DeviceChild + ?Sized,
impl<T> DeviceChild for MutexGuard<'_, T>where
T: DeviceChild + ?Sized,
type ConcreteDevice = <T as DeviceChild>::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Source§impl<T> DeviceChild for RwLockReadGuard<'_, T>where
T: DeviceChild + ?Sized,
impl<T> DeviceChild for RwLockReadGuard<'_, T>where
T: DeviceChild + ?Sized,
type ConcreteDevice = <T as DeviceChild>::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Source§impl<T> DeviceChild for RwLockWriteGuard<'_, T>where
T: DeviceChild + ?Sized,
impl<T> DeviceChild for RwLockWriteGuard<'_, T>where
T: DeviceChild + ?Sized,
type ConcreteDevice = <T as DeviceChild>::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Implementors§
Source§impl<Buffer: DeviceChild> DeviceChild for BufferViewObject<Buffer>
impl<Buffer: DeviceChild> DeviceChild for BufferViewObject<Buffer>
type ConcreteDevice = <Buffer as DeviceChild>::ConcreteDevice
Source§impl<Device, Surface> DeviceChild for SurfaceSwapchainObject<Device, Surface>
impl<Device, Surface> DeviceChild for SurfaceSwapchainObject<Device, Surface>
type ConcreteDevice = Device
Source§impl<Device: Device> DeviceChild for BufferObject<Device>
impl<Device: Device> DeviceChild for BufferObject<Device>
type ConcreteDevice = Device
Source§impl<Device: Device> DeviceChild for DeviceMemoryObject<Device>
impl<Device: Device> DeviceChild for DeviceMemoryObject<Device>
type ConcreteDevice = Device
Source§impl<Device: Device> DeviceChild for ImageObject<Device>
impl<Device: Device> DeviceChild for ImageObject<Device>
type ConcreteDevice = Device
Source§impl<Device: Device> DeviceChild for SamplerObject<Device>
impl<Device: Device> DeviceChild for SamplerObject<Device>
type ConcreteDevice = Device
Source§impl<Device: Device> DeviceChild for CommandPoolObject<Device>
impl<Device: Device> DeviceChild for CommandPoolObject<Device>
type ConcreteDevice = Device
Source§impl<Device: Device> DeviceChild for DescriptorPoolObject<Device>
impl<Device: Device> DeviceChild for DescriptorPoolObject<Device>
type ConcreteDevice = Device
Source§impl<Device: Device> DeviceChild for DescriptorSetLayoutObject<Device>
impl<Device: Device> DeviceChild for DescriptorSetLayoutObject<Device>
type ConcreteDevice = Device
Source§impl<Device: Device> DeviceChild for DescriptorUpdateTemplateObject<Device>
Available on crate feature VK_KHR_descriptor_update_template
only.
impl<Device: Device> DeviceChild for DescriptorUpdateTemplateObject<Device>
Available on crate feature
VK_KHR_descriptor_update_template
only.