pub struct AllocatorInfo {
pub device: DeviceHandle,
pub instance: Option<InstanceHandle>,
pub physical_device: Option<PhysicalDevice>,
pub api_version: Option<u32>,
}Expand description
Captured native identities. Manual metadata constructors do not invent parent identities.
Fields§
§device: DeviceHandle§instance: Option<InstanceHandle>§physical_device: Option<PhysicalDevice>§api_version: Option<u32>Implementations§
Source§impl AllocatorInfo
impl AllocatorInfo
Sourcepub fn set_device(self, value: DeviceHandle) -> Self
pub fn set_device(self, value: DeviceHandle) -> Self
Set device and return the updated record.
Sourcepub fn set_instance(self, value: Option<InstanceHandle>) -> Self
pub fn set_instance(self, value: Option<InstanceHandle>) -> Self
Set instance and return the updated record.
Sourcepub fn set_physical_device(self, value: Option<PhysicalDevice>) -> Self
pub fn set_physical_device(self, value: Option<PhysicalDevice>) -> Self
Set physical_device and return the updated record.
Sourcepub fn set_api_version(self, value: Option<u32>) -> Self
pub fn set_api_version(self, value: Option<u32>) -> Self
Set api_version and return the updated record.
Trait Implementations§
Source§impl Clone for AllocatorInfo
impl Clone for AllocatorInfo
impl Copy for AllocatorInfo
Source§impl Debug for AllocatorInfo
impl Debug for AllocatorInfo
impl Eq for AllocatorInfo
Source§impl PartialEq for AllocatorInfo
impl PartialEq for AllocatorInfo
impl StructuralPartialEq for AllocatorInfo
Auto Trait Implementations§
impl Forget for AllocatorInfo
impl Freeze for AllocatorInfo
impl Move for AllocatorInfo
impl RefUnwindSafe for AllocatorInfo
impl Send for AllocatorInfo
impl Sync for AllocatorInfo
impl Unpin for AllocatorInfo
impl UnsafeUnpin for AllocatorInfo
impl UnwindSafe for AllocatorInfo
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