#[repr(C)]pub union DeviceOrHostAddressConstAMDX {
pub device_address: DeviceAddress,
pub host_address: *const c_void,
}Expand description
Native union VkDeviceOrHostAddressConstAMDX.
Fields§
§device_address: DeviceAddressNative field deviceAddress.
host_address: *const c_voidNative field hostAddress.
Implementations§
Source§impl DeviceOrHostAddressConstAMDX
impl DeviceOrHostAddressConstAMDX
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: *const c_void) -> Self
pub unsafe fn set_host_address(self, value: *const 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 DeviceOrHostAddressConstAMDX
impl Clone for DeviceOrHostAddressConstAMDX
impl Copy for DeviceOrHostAddressConstAMDX
Auto Trait Implementations§
impl !Send for DeviceOrHostAddressConstAMDX
impl !Sync for DeviceOrHostAddressConstAMDX
impl Forget for DeviceOrHostAddressConstAMDX
impl Freeze for DeviceOrHostAddressConstAMDX
impl Move for DeviceOrHostAddressConstAMDX
impl RefUnwindSafe for DeviceOrHostAddressConstAMDX
impl Unpin for DeviceOrHostAddressConstAMDX
impl UnsafeUnpin for DeviceOrHostAddressConstAMDX
impl UnwindSafe for DeviceOrHostAddressConstAMDX
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