pub enum DeviceOrHostAddress {
DeviceAddress(DeviceAddress),
HostAddress(*mut c_void),
}Expand description
Specifies a constant device or host address.
See VkDeviceOrHostAddressKHR for more information.
Variants§
DeviceAddress(DeviceAddress)
An address value returned from AccelerationStructure::device_address.
HostAddress(*mut c_void)
A host memory address.
Trait Implementations§
Source§impl Clone for DeviceOrHostAddress
impl Clone for DeviceOrHostAddress
Source§fn clone(&self) -> DeviceOrHostAddress
fn clone(&self) -> DeviceOrHostAddress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceOrHostAddress
impl Debug for DeviceOrHostAddress
Source§impl From<DeviceOrHostAddress> for DeviceOrHostAddressConstKHR
impl From<DeviceOrHostAddress> for DeviceOrHostAddressConstKHR
Source§fn from(value: DeviceOrHostAddress) -> Self
fn from(value: DeviceOrHostAddress) -> Self
Converts to this type from the input type.
Source§impl From<DeviceOrHostAddress> for DeviceOrHostAddressKHR
impl From<DeviceOrHostAddress> for DeviceOrHostAddressKHR
Source§fn from(value: DeviceOrHostAddress) -> Self
fn from(value: DeviceOrHostAddress) -> Self
Converts to this type from the input type.
Source§impl From<u64> for DeviceOrHostAddress
impl From<u64> for DeviceOrHostAddress
Source§fn from(device_address: DeviceAddress) -> Self
fn from(device_address: DeviceAddress) -> Self
Converts to this type from the input type.
Source§impl Hash for DeviceOrHostAddress
impl Hash for DeviceOrHostAddress
Source§impl PartialEq for DeviceOrHostAddress
impl PartialEq for DeviceOrHostAddress
impl Copy for DeviceOrHostAddress
impl Eq for DeviceOrHostAddress
impl Send for DeviceOrHostAddress
impl StructuralPartialEq for DeviceOrHostAddress
impl Sync for DeviceOrHostAddress
Auto Trait Implementations§
impl Freeze for DeviceOrHostAddress
impl RefUnwindSafe for DeviceOrHostAddress
impl Unpin for DeviceOrHostAddress
impl UnwindSafe for DeviceOrHostAddress
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