vk · Structs · M1
16 public declarations with native signatures and source-owned contracts.
Stvk::MacOSSurfaceCreateFlagsMVK
Contract
Open integer representation of VkMacOSSurfaceCreateFlagsMVK.
Fields
0
0: u32Methods and associated items
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::MacOSSurfaceCreateInfoMVK
Contract
Native structure VkMacOSSurfaceCreateInfoMVK.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: MacOSSurfaceCreateFlagsMVKNative field flags.
p_view
p_view: *const c_voidNative field pView.
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_view
Set native pointer pView 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::MappedMemoryRange
Contract
Native structure VkMappedMemoryRange.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
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_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::MemoryAllocateFlagBits
Contract
Open integer representation of VkMemoryAllocateFlagBits.
Fields
0
0: u32Methods and associated items
DEVICE_MASK_BIT
Native value VK_MEMORY_ALLOCATE_DEVICE_MASK_BIT.
DEVICE_ADDRESS_BIT
Native value VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BIT.
DEVICE_ADDRESS_CAPTURE_REPLAY_BIT
Native value VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT.
Khronos reference: VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT
DEVICE_MASK_BIT_KHR
Native value VK_MEMORY_ALLOCATE_DEVICE_MASK_BIT_KHR.
DEVICE_ADDRESS_BIT_KHR
Native value VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BIT_KHR.
Khronos reference: VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BIT_KHR
DEVICE_ADDRESS_CAPTURE_REPLAY_BIT_KHR
Native value VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT_KHR.
Khronos reference: VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT_KHR
ZERO_INITIALIZE_BIT_EXT
Native value VK_MEMORY_ALLOCATE_ZERO_INITIALIZE_BIT_EXT.
Khronos reference: VK_MEMORY_ALLOCATE_ZERO_INITIALIZE_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::MemoryAllocateFlagsInfo
Contract
Native structure VkMemoryAllocateFlagsInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: MemoryAllocateFlagsNative field flags.
device_mask
device_mask: u32Native field deviceMask.
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_device_mask
Set native field deviceMask 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::MemoryAllocateInfo
Contract
Native structure VkMemoryAllocateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
allocation_size
allocation_size: DeviceSizeNative field allocationSize.
memory_type_index
memory_type_index: u32Native field memoryTypeIndex.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_allocation_size
Set native field allocationSize without native effects.
set_memory_type_index
Set native field memoryTypeIndex 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::MemoryBarrier
Contract
Native structure VkMemoryBarrier.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
src_access_mask
src_access_mask: AccessFlagsNative field srcAccessMask.
dst_access_mask
dst_access_mask: AccessFlagsNative field dstAccessMask.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_src_access_mask
Set native field srcAccessMask without native effects.
set_dst_access_mask
Set native field dstAccessMask 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::MemoryBarrier2
Contract
Native structure VkMemoryBarrier2.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
src_stage_mask
src_stage_mask: PipelineStageFlags2Native field srcStageMask.
src_access_mask
src_access_mask: AccessFlags2Native field srcAccessMask.
dst_stage_mask
dst_stage_mask: PipelineStageFlags2Native field dstStageMask.
dst_access_mask
dst_access_mask: AccessFlags2Native field dstAccessMask.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_src_stage_mask
Set native field srcStageMask without native effects.
set_src_access_mask
Set native field srcAccessMask without native effects.
set_dst_stage_mask
Set native field dstStageMask without native effects.
set_dst_access_mask
Set native field dstAccessMask 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::MemoryBarrierAccessFlags3KHR
Contract
Native structure VkMemoryBarrierAccessFlags3KHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
src_access_mask3
src_access_mask3: AccessFlags3KHRNative field srcAccessMask3.
dst_access_mask3
dst_access_mask3: AccessFlags3KHRNative field dstAccessMask3.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_src_access_mask3
Set native field srcAccessMask3 without native effects.
set_dst_access_mask3
Set native field dstAccessMask3 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::MemoryDecompressionMethodFlagBitsEXT
Contract
Open integer representation of VkMemoryDecompressionMethodFlagBitsEXT.
Fields
0
0: u64Methods and associated items
GDEFLATE_1_0_BIT_EXT
Native value VK_MEMORY_DECOMPRESSION_METHOD_GDEFLATE_1_0_BIT_EXT.
Khronos reference: VK_MEMORY_DECOMPRESSION_METHOD_GDEFLATE_1_0_BIT_EXT
GDEFLATE_1_0_BIT_NV
Native value VK_MEMORY_DECOMPRESSION_METHOD_GDEFLATE_1_0_BIT_NV.
Khronos reference: VK_MEMORY_DECOMPRESSION_METHOD_GDEFLATE_1_0_BIT_NV
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::MemoryDedicatedAllocateInfo
Contract
Native structure VkMemoryDedicatedAllocateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
image
image: ImageNative field image.
buffer
buffer: BufferNative field buffer.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_image
Set native field image without native effects.
set_buffer
Set native field buffer 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::MemoryDedicatedAllocateInfoTensorARM
Contract
Native structure VkMemoryDedicatedAllocateInfoTensorARM.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
tensor
tensor: TensorARMNative field tensor.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_tensor
Set native field tensor 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::MemoryDedicatedRequirements
Contract
Native structure VkMemoryDedicatedRequirements.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
prefers_dedicated_allocation
prefers_dedicated_allocation: Bool32Native field prefersDedicatedAllocation.
requires_dedicated_allocation
requires_dedicated_allocation: Bool32Native field requiresDedicatedAllocation.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_prefers_dedicated_allocation
Set native field prefersDedicatedAllocation without native effects.
set_requires_dedicated_allocation
Set native field requiresDedicatedAllocation 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::MemoryFdPropertiesKHR
Contract
Native structure VkMemoryFdPropertiesKHR.
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::MemoryGetAndroidHardwareBufferInfoANDROID
Contract
Native structure VkMemoryGetAndroidHardwareBufferInfoANDROID.
Khronos reference: VkMemoryGetAndroidHardwareBufferInfoANDROID
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::MemoryGetFdInfoKHR
Contract
Native structure VkMemoryGetFdInfoKHR.
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.