vk · Structs · O1
16 public declarations with native signatures and source-owned contracts.
Stvk::ObjectType
Contract
Open integer representation of VkObjectType.
Fields
0
0: i32Methods and associated items
UNKNOWN
Native value VK_OBJECT_TYPE_UNKNOWN.
INSTANCE
Native value VK_OBJECT_TYPE_INSTANCE.
PHYSICAL_DEVICE
Native value VK_OBJECT_TYPE_PHYSICAL_DEVICE.
DEVICE
Native value VK_OBJECT_TYPE_DEVICE.
QUEUE
Native value VK_OBJECT_TYPE_QUEUE.
SEMAPHORE
Native value VK_OBJECT_TYPE_SEMAPHORE.
COMMAND_BUFFER
Native value VK_OBJECT_TYPE_COMMAND_BUFFER.
FENCE
Native value VK_OBJECT_TYPE_FENCE.
DEVICE_MEMORY
Native value VK_OBJECT_TYPE_DEVICE_MEMORY.
BUFFER
Native value VK_OBJECT_TYPE_BUFFER.
IMAGE
Native value VK_OBJECT_TYPE_IMAGE.
EVENT
Native value VK_OBJECT_TYPE_EVENT.
QUERY_POOL
Native value VK_OBJECT_TYPE_QUERY_POOL.
BUFFER_VIEW
Native value VK_OBJECT_TYPE_BUFFER_VIEW.
IMAGE_VIEW
Native value VK_OBJECT_TYPE_IMAGE_VIEW.
SHADER_MODULE
Native value VK_OBJECT_TYPE_SHADER_MODULE.
PIPELINE_CACHE
Native value VK_OBJECT_TYPE_PIPELINE_CACHE.
PIPELINE_LAYOUT
Native value VK_OBJECT_TYPE_PIPELINE_LAYOUT.
RENDER_PASS
Native value VK_OBJECT_TYPE_RENDER_PASS.
PIPELINE
Native value VK_OBJECT_TYPE_PIPELINE.
DESCRIPTOR_SET_LAYOUT
Native value VK_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT.
SAMPLER
Native value VK_OBJECT_TYPE_SAMPLER.
DESCRIPTOR_POOL
Native value VK_OBJECT_TYPE_DESCRIPTOR_POOL.
DESCRIPTOR_SET
Native value VK_OBJECT_TYPE_DESCRIPTOR_SET.
FRAMEBUFFER
Native value VK_OBJECT_TYPE_FRAMEBUFFER.
COMMAND_POOL
Native value VK_OBJECT_TYPE_COMMAND_POOL.
DESCRIPTOR_UPDATE_TEMPLATE
Native value VK_OBJECT_TYPE_DESCRIPTOR_UPDATE_TEMPLATE.
Khronos reference: VK_OBJECT_TYPE_DESCRIPTOR_UPDATE_TEMPLATE
SAMPLER_YCBCR_CONVERSION
Native value VK_OBJECT_TYPE_SAMPLER_YCBCR_CONVERSION.
PRIVATE_DATA_SLOT
Native value VK_OBJECT_TYPE_PRIVATE_DATA_SLOT.
SURFACE_KHR
Native value VK_OBJECT_TYPE_SURFACE_KHR.
SWAPCHAIN_KHR
Native value VK_OBJECT_TYPE_SWAPCHAIN_KHR.
DISPLAY_KHR
Native value VK_OBJECT_TYPE_DISPLAY_KHR.
DISPLAY_MODE_KHR
Native value VK_OBJECT_TYPE_DISPLAY_MODE_KHR.
DEBUG_REPORT_CALLBACK_EXT
Native value VK_OBJECT_TYPE_DEBUG_REPORT_CALLBACK_EXT.
VIDEO_SESSION_KHR
Native value VK_OBJECT_TYPE_VIDEO_SESSION_KHR.
VIDEO_SESSION_PARAMETERS_KHR
Native value VK_OBJECT_TYPE_VIDEO_SESSION_PARAMETERS_KHR.
Khronos reference: VK_OBJECT_TYPE_VIDEO_SESSION_PARAMETERS_KHR
CU_MODULE_NVX
Native value VK_OBJECT_TYPE_CU_MODULE_NVX.
CU_FUNCTION_NVX
Native value VK_OBJECT_TYPE_CU_FUNCTION_NVX.
DESCRIPTOR_UPDATE_TEMPLATE_KHR
Native value VK_OBJECT_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_KHR.
Khronos reference: VK_OBJECT_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_KHR
DEBUG_UTILS_MESSENGER_EXT
Native value VK_OBJECT_TYPE_DEBUG_UTILS_MESSENGER_EXT.
GPA_SESSION_AMD
Native value VK_OBJECT_TYPE_GPA_SESSION_AMD.
ACCELERATION_STRUCTURE_KHR
Native value VK_OBJECT_TYPE_ACCELERATION_STRUCTURE_KHR.
Khronos reference: VK_OBJECT_TYPE_ACCELERATION_STRUCTURE_KHR
SAMPLER_YCBCR_CONVERSION_KHR
Native value VK_OBJECT_TYPE_SAMPLER_YCBCR_CONVERSION_KHR.
Khronos reference: VK_OBJECT_TYPE_SAMPLER_YCBCR_CONVERSION_KHR
VALIDATION_CACHE_EXT
Native value VK_OBJECT_TYPE_VALIDATION_CACHE_EXT.
ACCELERATION_STRUCTURE_NV
Native value VK_OBJECT_TYPE_ACCELERATION_STRUCTURE_NV.
PERFORMANCE_CONFIGURATION_INTEL
Native value VK_OBJECT_TYPE_PERFORMANCE_CONFIGURATION_INTEL.
Khronos reference: VK_OBJECT_TYPE_PERFORMANCE_CONFIGURATION_INTEL
DEFERRED_OPERATION_KHR
Native value VK_OBJECT_TYPE_DEFERRED_OPERATION_KHR.
INDIRECT_COMMANDS_LAYOUT_NV
Native value VK_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_NV.
Khronos reference: VK_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_NV
PRIVATE_DATA_SLOT_EXT
Native value VK_OBJECT_TYPE_PRIVATE_DATA_SLOT_EXT.
CUDA_MODULE_NV
Native value VK_OBJECT_TYPE_CUDA_MODULE_NV.
CUDA_FUNCTION_NV
Native value VK_OBJECT_TYPE_CUDA_FUNCTION_NV.
BUFFER_COLLECTION_FUCHSIA
Native value VK_OBJECT_TYPE_BUFFER_COLLECTION_FUCHSIA.
MICROMAP_EXT
Native value VK_OBJECT_TYPE_MICROMAP_EXT.
TENSOR_ARM
Native value VK_OBJECT_TYPE_TENSOR_ARM.
TENSOR_VIEW_ARM
Native value VK_OBJECT_TYPE_TENSOR_VIEW_ARM.
OPTICAL_FLOW_SESSION_NV
Native value VK_OBJECT_TYPE_OPTICAL_FLOW_SESSION_NV.
SHADER_EXT
Native value VK_OBJECT_TYPE_SHADER_EXT.
PIPELINE_BINARY_KHR
Native value VK_OBJECT_TYPE_PIPELINE_BINARY_KHR.
DATA_GRAPH_PIPELINE_SESSION_ARM
Native value VK_OBJECT_TYPE_DATA_GRAPH_PIPELINE_SESSION_ARM.
Khronos reference: VK_OBJECT_TYPE_DATA_GRAPH_PIPELINE_SESSION_ARM
EXTERNAL_COMPUTE_QUEUE_NV
Native value VK_OBJECT_TYPE_EXTERNAL_COMPUTE_QUEUE_NV.
INDIRECT_COMMANDS_LAYOUT_EXT
Native value VK_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_EXT.
Khronos reference: VK_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_EXT
INDIRECT_EXECUTION_SET_EXT
Native value VK_OBJECT_TYPE_INDIRECT_EXECUTION_SET_EXT.
Khronos reference: VK_OBJECT_TYPE_INDIRECT_EXECUTION_SET_EXT
SHADER_INSTRUMENTATION_ARM
Native value VK_OBJECT_TYPE_SHADER_INSTRUMENTATION_ARM.
Khronos reference: VK_OBJECT_TYPE_SHADER_INSTRUMENTATION_ARM
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::Offset2D
Contract
Native structure VkOffset2D.
Fields
x
x: i32Native field x.
y
y: i32Native field y.
Methods and associated items
new
Construct the record with its default native state.
set_x
Set native field x without native effects.
set_y
Set native field y without native effects.
clone
default
Stvk::Offset3D
Contract
Native structure VkOffset3D.
Fields
x
x: i32Native field x.
y
y: i32Native field y.
z
z: i32Native field z.
Methods and associated items
new
Construct the record with its default native state.
set_x
Set native field x without native effects.
set_y
Set native field y without native effects.
set_z
Set native field z without native effects.
clone
default
Stvk::OH_NativeBuffer
Contract
Native type OH_NativeBuffer.
Stvk::OHNativeWindow
Contract
Native type OHNativeWindow.
Stvk::OpacityMicromapFormatKHR
Contract
Open integer representation of VkOpacityMicromapFormatKHR.
Fields
0
0: i32Methods and associated items
_2_STATE_KHR
Native value VK_OPACITY_MICROMAP_FORMAT_2_STATE_KHR.
_4_STATE_KHR
Native value VK_OPACITY_MICROMAP_FORMAT_4_STATE_KHR.
_2_STATE_EXT
Native value VK_OPACITY_MICROMAP_FORMAT_2_STATE_EXT.
_4_STATE_EXT
Native value VK_OPACITY_MICROMAP_FORMAT_4_STATE_EXT.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::OpacityMicromapSpecialIndexKHR
Contract
Open integer representation of VkOpacityMicromapSpecialIndexKHR.
Fields
0
0: i32Methods and associated items
FULLY_TRANSPARENT_KHR
Native value VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_TRANSPARENT_KHR.
Khronos reference: VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_TRANSPARENT_KHR
FULLY_OPAQUE_KHR
Native value VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_OPAQUE_KHR.
Khronos reference: VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_OPAQUE_KHR
FULLY_UNKNOWN_TRANSPARENT_KHR
Native value VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_UNKNOWN_TRANSPARENT_KHR.
Khronos reference: VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_UNKNOWN_TRANSPARENT_KHR
FULLY_UNKNOWN_OPAQUE_KHR
Native value VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_UNKNOWN_OPAQUE_KHR.
Khronos reference: VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_UNKNOWN_OPAQUE_KHR
FULLY_TRANSPARENT_EXT
Native value VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_TRANSPARENT_EXT.
Khronos reference: VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_TRANSPARENT_EXT
FULLY_OPAQUE_EXT
Native value VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_OPAQUE_EXT.
Khronos reference: VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_OPAQUE_EXT
FULLY_UNKNOWN_TRANSPARENT_EXT
Native value VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_UNKNOWN_TRANSPARENT_EXT.
Khronos reference: VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_UNKNOWN_TRANSPARENT_EXT
FULLY_UNKNOWN_OPAQUE_EXT
Native value VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_UNKNOWN_OPAQUE_EXT.
Khronos reference: VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_UNKNOWN_OPAQUE_EXT
CLUSTER_GEOMETRY_DISABLE_OPACITY_MICROMAP_NV
Native value VK_OPACITY_MICROMAP_SPECIAL_INDEX_CLUSTER_GEOMETRY_DISABLE_OPACITY_MICROMAP_NV.
Khronos reference: VK_OPACITY_MICROMAP_SPECIAL_INDEX_CLUSTER_GEOMETRY_DISABLE_OPACITY_MICROMAP_NV
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::OpaqueCaptureDataCreateInfoEXT
Contract
Native structure VkOpaqueCaptureDataCreateInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
p_data
p_data: *const HostAddressRangeConstEXT<'a>Native field pData.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_data
Set native field pData 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::OpaqueCaptureDescriptorDataCreateInfoEXT
Contract
Native structure VkOpaqueCaptureDescriptorDataCreateInfoEXT.
Khronos reference: VkOpaqueCaptureDescriptorDataCreateInfoEXT
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
opaque_capture_descriptor_data
opaque_capture_descriptor_data: *const c_voidNative field opaqueCaptureDescriptorData.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_opaque_capture_descriptor_data
Set native pointer opaqueCaptureDescriptorData 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::OpticalFlowExecuteFlagBitsNV
Contract
Open integer representation of VkOpticalFlowExecuteFlagBitsNV.
Fields
0
0: u32Methods and associated items
DISABLE_TEMPORAL_HINTS_BIT_NV
Native value VK_OPTICAL_FLOW_EXECUTE_DISABLE_TEMPORAL_HINTS_BIT_NV.
Khronos reference: VK_OPTICAL_FLOW_EXECUTE_DISABLE_TEMPORAL_HINTS_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::OpticalFlowExecuteInfoNV
Contract
Native structure VkOpticalFlowExecuteInfoNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
flags
flags: OpticalFlowExecuteFlagsNVNative field flags.
region_count
region_count: u32Native field regionCount.
p_regions
p_regions: *const Rect2DNative field pRegions.
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_region_count
Set native count regionCount directly without checking associated pointer extents.
Use the borrowed array helpers to derive matching storage and counts together.
Direct count edits support null-query/dynamic-state paths and remain a
native-call validity obligation, including after earlier borrowed setters.
set_regions
Borrow pRegions and set checked native count regionCount.
The borrow covers this storage only; nested raw pointers, format, alignment
and asynchronous retention remain native-call obligations.
Output storage must be initialized; returned sizes do not enlarge its capacity.
Errors
Returns a construction error if the length exceeds the native count width.
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::OpticalFlowGridSizeFlagBitsNV
Contract
Open integer representation of VkOpticalFlowGridSizeFlagBitsNV.
Fields
0
0: u32Methods and associated items
UNKNOWN_NV
Native value VK_OPTICAL_FLOW_GRID_SIZE_UNKNOWN_NV.
_1X1_BIT_NV
Native value VK_OPTICAL_FLOW_GRID_SIZE_1X1_BIT_NV.
_2X2_BIT_NV
Native value VK_OPTICAL_FLOW_GRID_SIZE_2X2_BIT_NV.
_4X4_BIT_NV
Native value VK_OPTICAL_FLOW_GRID_SIZE_4X4_BIT_NV.
_8X8_BIT_NV
Native value VK_OPTICAL_FLOW_GRID_SIZE_8X8_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::OpticalFlowImageFormatInfoNV
Contract
Native structure VkOpticalFlowImageFormatInfoNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
usage
usage: OpticalFlowUsageFlagsNVNative field usage.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_usage
Set native field usage 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::OpticalFlowImageFormatPropertiesNV
Contract
Native structure VkOpticalFlowImageFormatPropertiesNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
format
format: FormatNative field format.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_format
Set native field format 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::OpticalFlowPerformanceLevelNV
Contract
Open integer representation of VkOpticalFlowPerformanceLevelNV.
Fields
0
0: i32Methods and associated items
UNKNOWN_NV
Native value VK_OPTICAL_FLOW_PERFORMANCE_LEVEL_UNKNOWN_NV.
Khronos reference: VK_OPTICAL_FLOW_PERFORMANCE_LEVEL_UNKNOWN_NV
SLOW_NV
Native value VK_OPTICAL_FLOW_PERFORMANCE_LEVEL_SLOW_NV.
Khronos reference: VK_OPTICAL_FLOW_PERFORMANCE_LEVEL_SLOW_NV
MEDIUM_NV
Native value VK_OPTICAL_FLOW_PERFORMANCE_LEVEL_MEDIUM_NV.
Khronos reference: VK_OPTICAL_FLOW_PERFORMANCE_LEVEL_MEDIUM_NV
FAST_NV
Native value VK_OPTICAL_FLOW_PERFORMANCE_LEVEL_FAST_NV.
Khronos reference: VK_OPTICAL_FLOW_PERFORMANCE_LEVEL_FAST_NV
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::OpticalFlowSessionBindingPointNV
Contract
Open integer representation of VkOpticalFlowSessionBindingPointNV.
Fields
0
0: i32Methods and associated items
UNKNOWN_NV
Native value VK_OPTICAL_FLOW_SESSION_BINDING_POINT_UNKNOWN_NV.
Khronos reference: VK_OPTICAL_FLOW_SESSION_BINDING_POINT_UNKNOWN_NV
INPUT_NV
Native value VK_OPTICAL_FLOW_SESSION_BINDING_POINT_INPUT_NV.
Khronos reference: VK_OPTICAL_FLOW_SESSION_BINDING_POINT_INPUT_NV
REFERENCE_NV
Native value VK_OPTICAL_FLOW_SESSION_BINDING_POINT_REFERENCE_NV.
Khronos reference: VK_OPTICAL_FLOW_SESSION_BINDING_POINT_REFERENCE_NV
HINT_NV
Native value VK_OPTICAL_FLOW_SESSION_BINDING_POINT_HINT_NV.
Khronos reference: VK_OPTICAL_FLOW_SESSION_BINDING_POINT_HINT_NV
FLOW_VECTOR_NV
Native value VK_OPTICAL_FLOW_SESSION_BINDING_POINT_FLOW_VECTOR_NV.
Khronos reference: VK_OPTICAL_FLOW_SESSION_BINDING_POINT_FLOW_VECTOR_NV
BACKWARD_FLOW_VECTOR_NV
Native value VK_OPTICAL_FLOW_SESSION_BINDING_POINT_BACKWARD_FLOW_VECTOR_NV.
Khronos reference: VK_OPTICAL_FLOW_SESSION_BINDING_POINT_BACKWARD_FLOW_VECTOR_NV
COST_NV
Native value VK_OPTICAL_FLOW_SESSION_BINDING_POINT_COST_NV.
Khronos reference: VK_OPTICAL_FLOW_SESSION_BINDING_POINT_COST_NV
BACKWARD_COST_NV
Native value VK_OPTICAL_FLOW_SESSION_BINDING_POINT_BACKWARD_COST_NV.
Khronos reference: VK_OPTICAL_FLOW_SESSION_BINDING_POINT_BACKWARD_COST_NV
GLOBAL_FLOW_NV
Native value VK_OPTICAL_FLOW_SESSION_BINDING_POINT_GLOBAL_FLOW_NV.
Khronos reference: VK_OPTICAL_FLOW_SESSION_BINDING_POINT_GLOBAL_FLOW_NV
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.