vk · Structs · M2
16 public declarations with native signatures and source-owned contracts.
Stvk::MemoryGetMetalHandleInfoEXT
Contract
Native structure VkMemoryGetMetalHandleInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
memory
memory: DeviceMemoryNative field memory.
handle_type
handle_type: ExternalMemoryHandleTypeFlagBitsNative field handleType.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_memory
Set native field memory without native effects.
set_handle_type
Set native field handleType without native effects.
push_next
Prepend one registry-compatible node, retaining its exclusive borrow.
The node must have a null p_next and both headers must have canonical tags.
Existing links are never traversed and remain written after the borrow ends.
Type compatibility does not establish enabled extensions or Vulkan valid usage.
Errors
Returns a construction error for a changed structure tag or already-linked node.
default
Stvk::MemoryGetNativeBufferInfoOHOS
Contract
Native structure VkMemoryGetNativeBufferInfoOHOS.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
memory
memory: DeviceMemoryNative field memory.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_memory
Set native field memory without native effects.
push_next
Prepend one registry-compatible node, retaining its exclusive borrow.
The node must have a null p_next and both headers must have canonical tags.
Existing links are never traversed and remain written after the borrow ends.
Type compatibility does not establish enabled extensions or Vulkan valid usage.
Errors
Returns a construction error for a changed structure tag or already-linked node.
default
Stvk::MemoryGetRemoteAddressInfoNV
Contract
Native structure VkMemoryGetRemoteAddressInfoNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
memory
memory: DeviceMemoryNative field memory.
handle_type
handle_type: ExternalMemoryHandleTypeFlagBitsNative field handleType.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_memory
Set native field memory without native effects.
set_handle_type
Set native field handleType without native effects.
push_next
Prepend one registry-compatible node, retaining its exclusive borrow.
The node must have a null p_next and both headers must have canonical tags.
Existing links are never traversed and remain written after the borrow ends.
Type compatibility does not establish enabled extensions or Vulkan valid usage.
Errors
Returns a construction error for a changed structure tag or already-linked node.
default
Stvk::MemoryGetWin32HandleInfoKHR
Contract
Native structure VkMemoryGetWin32HandleInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
memory
memory: DeviceMemoryNative field memory.
handle_type
handle_type: ExternalMemoryHandleTypeFlagBitsNative field handleType.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_memory
Set native field memory without native effects.
set_handle_type
Set native field handleType without native effects.
push_next
Prepend one registry-compatible node, retaining its exclusive borrow.
The node must have a null p_next and both headers must have canonical tags.
Existing links are never traversed and remain written after the borrow ends.
Type compatibility does not establish enabled extensions or Vulkan valid usage.
Errors
Returns a construction error for a changed structure tag or already-linked node.
default
Stvk::MemoryGetZirconHandleInfoFUCHSIA
Contract
Native structure VkMemoryGetZirconHandleInfoFUCHSIA.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
memory
memory: DeviceMemoryNative field memory.
handle_type
handle_type: ExternalMemoryHandleTypeFlagBitsNative field handleType.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_memory
Set native field memory without native effects.
set_handle_type
Set native field handleType without native effects.
push_next
Prepend one registry-compatible node, retaining its exclusive borrow.
The node must have a null p_next and both headers must have canonical tags.
Existing links are never traversed and remain written after the borrow ends.
Type compatibility does not establish enabled extensions or Vulkan valid usage.
Errors
Returns a construction error for a changed structure tag or already-linked node.
default
Stvk::MemoryHeap
Contract
Native structure VkMemoryHeap.
Fields
size
size: DeviceSizeNative field size.
flags
flags: MemoryHeapFlagsNative field flags.
Methods and associated items
new
Construct the record with its default native state.
set_size
Set native field size without native effects.
set_flags
Set native field flags without native effects.
clone
default
Stvk::MemoryHeapFlagBits
Contract
Open integer representation of VkMemoryHeapFlagBits.
Fields
0
0: u32Methods and associated items
DEVICE_LOCAL_BIT
Native value VK_MEMORY_HEAP_DEVICE_LOCAL_BIT.
MULTI_INSTANCE_BIT
Native value VK_MEMORY_HEAP_MULTI_INSTANCE_BIT.
MULTI_INSTANCE_BIT_KHR
Native value VK_MEMORY_HEAP_MULTI_INSTANCE_BIT_KHR.
TILE_MEMORY_BIT_QCOM
Native value VK_MEMORY_HEAP_TILE_MEMORY_BIT_QCOM.
from_raw
as_raw
empty
Output
& operator.bitand
& operation. Read moreOutput-1
| operator.bitor
| operation. Read moreOutput-2
^ operator.bitxor
^ operation. Read moreclone
fmt
default
hash
Output-3
! operator.not
! operation. Read moreeq
self and other values to be equal, and is used by ==.Stvk::MemoryHostPointerPropertiesEXT
Contract
Native structure VkMemoryHostPointerPropertiesEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
memory_type_bits
memory_type_bits: u32Native field memoryTypeBits.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_memory_type_bits
Set native field memoryTypeBits without native effects.
push_next
Prepend one registry-compatible node, retaining its exclusive borrow.
The node must have a null p_next and both headers must have canonical tags.
Existing links are never traversed and remain written after the borrow ends.
Type compatibility does not establish enabled extensions or Vulkan valid usage.
Errors
Returns a construction error for a changed structure tag or already-linked node.
default
Stvk::MemoryMapFlagBits
Contract
Open integer representation of VkMemoryMapFlagBits.
Fields
0
0: u32Methods and associated items
PLACED_BIT_EXT
Native value VK_MEMORY_MAP_PLACED_BIT_EXT.
from_raw
as_raw
empty
Output
& operator.bitand
& operation. Read moreOutput-1
| operator.bitor
| operation. Read moreOutput-2
^ operator.bitxor
^ operation. Read moreclone
fmt
default
hash
Output-3
! operator.not
! operation. Read moreeq
self and other values to be equal, and is used by ==.Stvk::MemoryMapInfo
Contract
Native structure VkMemoryMapInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: MemoryMapFlagsNative field flags.
memory
memory: DeviceMemoryNative field memory.
offset
offset: DeviceSizeNative field offset.
size
size: DeviceSizeNative field size.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_flags
Set native field flags without native effects.
set_memory
Set native field memory without native effects.
set_offset
Set native field offset without native effects.
set_size
Set native field size without native effects.
push_next
Prepend one registry-compatible node, retaining its exclusive borrow.
The node must have a null p_next and both headers must have canonical tags.
Existing links are never traversed and remain written after the borrow ends.
Type compatibility does not establish enabled extensions or Vulkan valid usage.
Errors
Returns a construction error for a changed structure tag or already-linked node.
default
Stvk::MemoryMapPlacedInfoEXT
Contract
Native structure VkMemoryMapPlacedInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
p_placed_address
p_placed_address: *mut c_voidNative field pPlacedAddress.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_placed_address
Set native pointer pPlacedAddress 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.
push_next
Prepend one registry-compatible node, retaining its exclusive borrow.
The node must have a null p_next and both headers must have canonical tags.
Existing links are never traversed and remain written after the borrow ends.
Type compatibility does not establish enabled extensions or Vulkan valid usage.
Errors
Returns a construction error for a changed structure tag or already-linked node.
default
Stvk::MemoryMarkerInfoAMD
Contract
Native structure VkMemoryMarkerInfoAMD.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
stage
stage: PipelineStageFlags2KHRNative field stage.
dst_range
dst_range: DeviceAddressRangeKHRNative field dstRange.
dst_flags
dst_flags: AddressCommandFlagsKHRNative field dstFlags.
marker
marker: u32Native field marker.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_stage
Set native field stage without native effects.
set_dst_range
Set native field dstRange without native effects.
set_dst_flags
Set native field dstFlags without native effects.
set_marker
Set native field marker without native effects.
push_next
Prepend one registry-compatible node, retaining its exclusive borrow.
The node must have a null p_next and both headers must have canonical tags.
Existing links are never traversed and remain written after the borrow ends.
Type compatibility does not establish enabled extensions or Vulkan valid usage.
Errors
Returns a construction error for a changed structure tag or already-linked node.
default
Stvk::MemoryMetalHandlePropertiesEXT
Contract
Native structure VkMemoryMetalHandlePropertiesEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
memory_type_bits
memory_type_bits: u32Native field memoryTypeBits.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_memory_type_bits
Set native field memoryTypeBits without native effects.
push_next
Prepend one registry-compatible node, retaining its exclusive borrow.
The node must have a null p_next and both headers must have canonical tags.
Existing links are never traversed and remain written after the borrow ends.
Type compatibility does not establish enabled extensions or Vulkan valid usage.
Errors
Returns a construction error for a changed structure tag or already-linked node.
default
Stvk::MemoryOpaqueCaptureAddressAllocateInfo
Contract
Native structure VkMemoryOpaqueCaptureAddressAllocateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
opaque_capture_address
opaque_capture_address: u64Native field opaqueCaptureAddress.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_opaque_capture_address
Set native field opaqueCaptureAddress without native effects.
push_next
Prepend one registry-compatible node, retaining its exclusive borrow.
The node must have a null p_next and both headers must have canonical tags.
Existing links are never traversed and remain written after the borrow ends.
Type compatibility does not establish enabled extensions or Vulkan valid usage.
Errors
Returns a construction error for a changed structure tag or already-linked node.
default
Stvk::MemoryOverallocationBehaviorAMD
Contract
Open integer representation of VkMemoryOverallocationBehaviorAMD.
Fields
0
0: i32Methods and associated items
DEFAULT_AMD
Native value VK_MEMORY_OVERALLOCATION_BEHAVIOR_DEFAULT_AMD.
Khronos reference: VK_MEMORY_OVERALLOCATION_BEHAVIOR_DEFAULT_AMD
ALLOWED_AMD
Native value VK_MEMORY_OVERALLOCATION_BEHAVIOR_ALLOWED_AMD.
Khronos reference: VK_MEMORY_OVERALLOCATION_BEHAVIOR_ALLOWED_AMD
DISALLOWED_AMD
Native value VK_MEMORY_OVERALLOCATION_BEHAVIOR_DISALLOWED_AMD.
Khronos reference: VK_MEMORY_OVERALLOCATION_BEHAVIOR_DISALLOWED_AMD
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::MemoryPriorityAllocateInfoEXT
Contract
Native structure VkMemoryPriorityAllocateInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
priority
priority: f32Native field priority.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_priority
Set native field priority without native effects.
push_next
Prepend one registry-compatible node, retaining its exclusive borrow.
The node must have a null p_next and both headers must have canonical tags.
Existing links are never traversed and remain written after the borrow ends.
Type compatibility does not establish enabled extensions or Vulkan valid usage.
Errors
Returns a construction error for a changed structure tag or already-linked node.