#[repr(C)]pub union DeviceOrHostAddressKHR {
pub device_address: DeviceAddress,
pub host_address: *mut c_void,
}Expand description
Native union VkDeviceOrHostAddressKHR.
Fields§
§device_address: DeviceAddressNative field deviceAddress.
host_address: *mut c_voidNative field hostAddress.
Implementations§
Source§impl DeviceOrHostAddressKHR
impl DeviceOrHostAddressKHR
Sourcepub fn set_device_address(self, value: DeviceAddress) -> Self
pub fn set_device_address(self, value: DeviceAddress) -> Self
Set native field deviceAddress without native effects.
Sourcepub unsafe fn set_host_address(self, value: *mut c_void) -> Self
pub unsafe fn set_host_address(self, value: *mut c_void) -> Self
Set native pointer hostAddress explicitly. No borrow or extent is inferred.
§Safety
The caller must establish pointee validity, extent, alignment, aliasing and the full native retention lifetime before using this record in a native call. Callback, external-object and nested-pointer contracts remain caller obligations.
Trait Implementations§
Source§impl Clone for DeviceOrHostAddressKHR
impl Clone for DeviceOrHostAddressKHR
impl Copy for DeviceOrHostAddressKHR
Auto Trait Implementations§
impl !Send for DeviceOrHostAddressKHR
impl !Sync for DeviceOrHostAddressKHR
impl Forget for DeviceOrHostAddressKHR
impl Freeze for DeviceOrHostAddressKHR
impl Move for DeviceOrHostAddressKHR
impl RefUnwindSafe for DeviceOrHostAddressKHR
impl Unpin for DeviceOrHostAddressKHR
impl UnsafeUnpin for DeviceOrHostAddressKHR
impl UnwindSafe for DeviceOrHostAddressKHR
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