vk · Structs · C1
16 public declarations with native signatures and source-owned contracts.
Stvk::CalibratedTimestampInfoKHR
Contract
Native structure VkCalibratedTimestampInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
time_domain
time_domain: TimeDomainKHRNative field timeDomain.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_time_domain
Set native field timeDomain 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::CAMetalLayer
Contract
Native type CAMetalLayer.
Stvk::CheckpointData2NV
Contract
Native structure VkCheckpointData2NV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
stage
stage: PipelineStageFlags2Native field stage.
p_checkpoint_marker
p_checkpoint_marker: *mut c_voidNative field pCheckpointMarker.
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_checkpoint_marker
Set native pointer pCheckpointMarker 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::CheckpointDataNV
Contract
Native structure VkCheckpointDataNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
stage
stage: PipelineStageFlagBitsNative field stage.
p_checkpoint_marker
p_checkpoint_marker: *mut c_voidNative field pCheckpointMarker.
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_checkpoint_marker
Set native pointer pCheckpointMarker 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::ChromaLocation
Contract
Open integer representation of VkChromaLocation.
Fields
0
0: i32Methods and associated items
COSITED_EVEN
Native value VK_CHROMA_LOCATION_COSITED_EVEN.
MIDPOINT
Native value VK_CHROMA_LOCATION_MIDPOINT.
COSITED_EVEN_KHR
Native value VK_CHROMA_LOCATION_COSITED_EVEN_KHR.
MIDPOINT_KHR
Native value VK_CHROMA_LOCATION_MIDPOINT_KHR.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::ClearAttachment
Contract
Native structure VkClearAttachment.
Fields
aspect_mask
aspect_mask: ImageAspectFlagsNative field aspectMask.
color_attachment
color_attachment: u32Native field colorAttachment.
clear_value
clear_value: ClearValueNative field clearValue.
Methods and associated items
new
Construct the record with its default native state.
set_aspect_mask
Set native field aspectMask without native effects.
set_color_attachment
Set native field colorAttachment without native effects.
set_clear_value
Set native field clearValue without native effects.
clone
default
Stvk::ClearDepthStencilValue
Contract
Native structure VkClearDepthStencilValue.
Fields
depth
depth: f32Native field depth.
stencil
stencil: u32Native field stencil.
Methods and associated items
new
Construct the record with its default native state.
set_depth
Set native field depth without native effects.
set_stencil
Set native field stencil without native effects.
clone
default
Stvk::ClearRect
Contract
Native structure VkClearRect.
Fields
rect
rect: Rect2DNative field rect.
base_array_layer
base_array_layer: u32Native field baseArrayLayer.
layer_count
layer_count: u32Native field layerCount.
Methods and associated items
new
Construct the record with its default native state.
set_rect
Set native field rect without native effects.
set_base_array_layer
Set native field baseArrayLayer without native effects.
set_layer_count
Set native field layerCount without native effects.
clone
default
Stvk::ClusterAccelerationStructureAddressResolutionFlagBitsNV
Contract
Open integer representation of VkClusterAccelerationStructureAddressResolutionFlagBitsNV.
Khronos reference: VkClusterAccelerationStructureAddressResolutionFlagBitsNV
Fields
0
0: u32Methods and associated items
NONE_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_ADDRESS_RESOLUTION_NONE_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_ADDRESS_RESOLUTION_NONE_NV
INDIRECTED_DST_IMPLICIT_DATA_BIT_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_ADDRESS_RESOLUTION_INDIRECTED_DST_IMPLICIT_DATA_BIT_NV.
INDIRECTED_SCRATCH_DATA_BIT_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_ADDRESS_RESOLUTION_INDIRECTED_SCRATCH_DATA_BIT_NV.
INDIRECTED_DST_ADDRESS_ARRAY_BIT_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_ADDRESS_RESOLUTION_INDIRECTED_DST_ADDRESS_ARRAY_BIT_NV.
INDIRECTED_DST_SIZES_ARRAY_BIT_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_ADDRESS_RESOLUTION_INDIRECTED_DST_SIZES_ARRAY_BIT_NV.
INDIRECTED_SRC_INFOS_ARRAY_BIT_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_ADDRESS_RESOLUTION_INDIRECTED_SRC_INFOS_ARRAY_BIT_NV.
INDIRECTED_SRC_INFOS_COUNT_BIT_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_ADDRESS_RESOLUTION_INDIRECTED_SRC_INFOS_COUNT_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::ClusterAccelerationStructureBuildClustersBottomLevelInfoNV
Contract
Native structure VkClusterAccelerationStructureBuildClustersBottomLevelInfoNV.
Khronos reference: VkClusterAccelerationStructureBuildClustersBottomLevelInfoNV
Fields
cluster_references_count
cluster_references_count: u32Native field clusterReferencesCount.
cluster_references_stride
cluster_references_stride: u32Native field clusterReferencesStride.
cluster_references
cluster_references: DeviceAddressNative field clusterReferences.
Methods and associated items
new
Construct the record with its default native state.
set_cluster_references_count
Set native field clusterReferencesCount without native effects.
set_cluster_references_stride
Set native field clusterReferencesStride without native effects.
set_cluster_references
Set native field clusterReferences without native effects.
clone
default
Stvk::ClusterAccelerationStructureBuildTriangleClusterInfoNV
#[repr(C)]pub struct ClusterAccelerationStructureBuildTriangleClusterInfoNV {
pub cluster_id: u32,
pub cluster_flags: ClusterAccelerationStructureClusterFlagsNV,
pub _bitfield_1: u32,
pub base_geometry_index_and_geometry_flags: ClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV,
pub index_buffer_stride: u16,
pub vertex_buffer_stride: u16,
pub geometry_index_and_flags_buffer_stride: u16,
pub opacity_micromap_index_buffer_stride: u16,
pub index_buffer: DeviceAddress,
pub vertex_buffer: DeviceAddress,
pub geometry_index_and_flags_buffer: DeviceAddress,
pub opacity_micromap_array: DeviceAddress,
pub opacity_micromap_index_buffer: DeviceAddress,
}Contract
Native structure VkClusterAccelerationStructureBuildTriangleClusterInfoNV.
Khronos reference: VkClusterAccelerationStructureBuildTriangleClusterInfoNV
Fields
cluster_id
cluster_id: u32Native field clusterID.
cluster_flags
cluster_flags: ClusterAccelerationStructureClusterFlagsNVNative field clusterFlags.
_bitfield_1
_bitfield_1: u32base_geometry_index_and_geometry_flags
base_geometry_index_and_geometry_flags: ClusterAccelerationStructureGeometryIndexAndGeometryFlagsNVNative field baseGeometryIndexAndGeometryFlags.
index_buffer_stride
index_buffer_stride: u16Native field indexBufferStride.
vertex_buffer_stride
vertex_buffer_stride: u16Native field vertexBufferStride.
geometry_index_and_flags_buffer_stride
geometry_index_and_flags_buffer_stride: u16Native field geometryIndexAndFlagsBufferStride.
opacity_micromap_index_buffer_stride
opacity_micromap_index_buffer_stride: u16Native field opacityMicromapIndexBufferStride.
index_buffer
index_buffer: DeviceAddressNative field indexBuffer.
vertex_buffer
vertex_buffer: DeviceAddressNative field vertexBuffer.
geometry_index_and_flags_buffer
geometry_index_and_flags_buffer: DeviceAddressNative field geometryIndexAndFlagsBuffer.
opacity_micromap_array
opacity_micromap_array: DeviceAddressNative field opacityMicromapArray.
opacity_micromap_index_buffer
opacity_micromap_index_buffer: DeviceAddressNative field opacityMicromapIndexBuffer.
Methods and associated items
triangle_count
Read native bitfield triangleCount.
set_triangle_count
Set native bitfield triangleCount, retaining its low 9 bits.
vertex_count
Read native bitfield vertexCount.
set_vertex_count
Set native bitfield vertexCount, retaining its low 9 bits.
position_truncate_bit_count
Read native bitfield positionTruncateBitCount.
set_position_truncate_bit_count
Set native bitfield positionTruncateBitCount, retaining its low 6 bits.
index_type
Read native bitfield indexType.
set_index_type
Set native bitfield indexType, retaining its low 4 bits.
opacity_micromap_index_type
Read native bitfield opacityMicromapIndexType.
set_opacity_micromap_index_type
Set native bitfield opacityMicromapIndexType, retaining its low 4 bits.
new
Construct the record with its default native state.
set_cluster_id
Set native field clusterID without native effects.
set_cluster_flags
Set native field clusterFlags without native effects.
set_base_geometry_index_and_geometry_flags
Set native field baseGeometryIndexAndGeometryFlags without native effects.
set_index_buffer_stride
Set native field indexBufferStride without native effects.
set_vertex_buffer_stride
Set native field vertexBufferStride without native effects.
set_geometry_index_and_flags_buffer_stride
Set native field geometryIndexAndFlagsBufferStride without native effects.
set_opacity_micromap_index_buffer_stride
Set native field opacityMicromapIndexBufferStride without native effects.
set_index_buffer
Set native field indexBuffer without native effects.
set_vertex_buffer
Set native field vertexBuffer without native effects.
set_geometry_index_and_flags_buffer
Set native field geometryIndexAndFlagsBuffer without native effects.
set_opacity_micromap_array
Set native field opacityMicromapArray without native effects.
set_opacity_micromap_index_buffer
Set native field opacityMicromapIndexBuffer without native effects.
clone
default
Stvk::ClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV
#[repr(C)]pub struct ClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV {
pub cluster_id: u32,
pub cluster_flags: ClusterAccelerationStructureClusterFlagsNV,
pub _bitfield_1: u32,
pub base_geometry_index_and_geometry_flags: ClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV,
pub index_buffer_stride: u16,
pub vertex_buffer_stride: u16,
pub geometry_index_and_flags_buffer_stride: u16,
pub opacity_micromap_index_buffer_stride: u16,
pub index_buffer: DeviceAddress,
pub vertex_buffer: DeviceAddress,
pub geometry_index_and_flags_buffer: DeviceAddress,
pub opacity_micromap_array: DeviceAddress,
pub opacity_micromap_index_buffer: DeviceAddress,
pub instantiation_bounding_box_limit: DeviceAddress,
}Contract
Native structure VkClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV.
Khronos reference: VkClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV
Fields
cluster_id
cluster_id: u32Native field clusterID.
cluster_flags
cluster_flags: ClusterAccelerationStructureClusterFlagsNVNative field clusterFlags.
_bitfield_1
_bitfield_1: u32base_geometry_index_and_geometry_flags
base_geometry_index_and_geometry_flags: ClusterAccelerationStructureGeometryIndexAndGeometryFlagsNVNative field baseGeometryIndexAndGeometryFlags.
index_buffer_stride
index_buffer_stride: u16Native field indexBufferStride.
vertex_buffer_stride
vertex_buffer_stride: u16Native field vertexBufferStride.
geometry_index_and_flags_buffer_stride
geometry_index_and_flags_buffer_stride: u16Native field geometryIndexAndFlagsBufferStride.
opacity_micromap_index_buffer_stride
opacity_micromap_index_buffer_stride: u16Native field opacityMicromapIndexBufferStride.
index_buffer
index_buffer: DeviceAddressNative field indexBuffer.
vertex_buffer
vertex_buffer: DeviceAddressNative field vertexBuffer.
geometry_index_and_flags_buffer
geometry_index_and_flags_buffer: DeviceAddressNative field geometryIndexAndFlagsBuffer.
opacity_micromap_array
opacity_micromap_array: DeviceAddressNative field opacityMicromapArray.
opacity_micromap_index_buffer
opacity_micromap_index_buffer: DeviceAddressNative field opacityMicromapIndexBuffer.
instantiation_bounding_box_limit
instantiation_bounding_box_limit: DeviceAddressNative field instantiationBoundingBoxLimit.
Methods and associated items
triangle_count
Read native bitfield triangleCount.
set_triangle_count
Set native bitfield triangleCount, retaining its low 9 bits.
vertex_count
Read native bitfield vertexCount.
set_vertex_count
Set native bitfield vertexCount, retaining its low 9 bits.
position_truncate_bit_count
Read native bitfield positionTruncateBitCount.
set_position_truncate_bit_count
Set native bitfield positionTruncateBitCount, retaining its low 6 bits.
index_type
Read native bitfield indexType.
set_index_type
Set native bitfield indexType, retaining its low 4 bits.
opacity_micromap_index_type
Read native bitfield opacityMicromapIndexType.
set_opacity_micromap_index_type
Set native bitfield opacityMicromapIndexType, retaining its low 4 bits.
new
Construct the record with its default native state.
set_cluster_id
Set native field clusterID without native effects.
set_cluster_flags
Set native field clusterFlags without native effects.
set_base_geometry_index_and_geometry_flags
Set native field baseGeometryIndexAndGeometryFlags without native effects.
set_index_buffer_stride
Set native field indexBufferStride without native effects.
set_vertex_buffer_stride
Set native field vertexBufferStride without native effects.
set_geometry_index_and_flags_buffer_stride
Set native field geometryIndexAndFlagsBufferStride without native effects.
set_opacity_micromap_index_buffer_stride
Set native field opacityMicromapIndexBufferStride without native effects.
set_index_buffer
Set native field indexBuffer without native effects.
set_vertex_buffer
Set native field vertexBuffer without native effects.
set_geometry_index_and_flags_buffer
Set native field geometryIndexAndFlagsBuffer without native effects.
set_opacity_micromap_array
Set native field opacityMicromapArray without native effects.
set_opacity_micromap_index_buffer
Set native field opacityMicromapIndexBuffer without native effects.
set_instantiation_bounding_box_limit
Set native field instantiationBoundingBoxLimit without native effects.
clone
default
Stvk::ClusterAccelerationStructureClusterFlagBitsNV
Contract
Open integer representation of VkClusterAccelerationStructureClusterFlagBitsNV.
Khronos reference: VkClusterAccelerationStructureClusterFlagBitsNV
Fields
0
0: u32Methods and associated items
ALLOW_DISABLE_OPACITY_MICROMAPS_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_CLUSTER_ALLOW_DISABLE_OPACITY_MICROMAPS_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_CLUSTER_ALLOW_DISABLE_OPACITY_MICROMAPS_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::ClusterAccelerationStructureClustersBottomLevelInputNV
Contract
Native structure VkClusterAccelerationStructureClustersBottomLevelInputNV.
Khronos reference: VkClusterAccelerationStructureClustersBottomLevelInputNV
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
max_total_cluster_count
max_total_cluster_count: u32Native field maxTotalClusterCount.
max_cluster_count_per_acceleration_structure
max_cluster_count_per_acceleration_structure: u32Native field maxClusterCountPerAccelerationStructure.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_max_total_cluster_count
Set native field maxTotalClusterCount without native effects.
set_max_cluster_count_per_acceleration_structure
Set native field maxClusterCountPerAccelerationStructure 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::ClusterAccelerationStructureCommandsInfoNV
pub struct ClusterAccelerationStructureCommandsInfoNV<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub input: ClusterAccelerationStructureInputInfoNV<'a>,
pub dst_implicit_data: DeviceAddress,
pub scratch_data: DeviceAddress,
pub dst_addresses_array: StridedDeviceAddressRegionKHR,
pub dst_sizes_array: StridedDeviceAddressRegionKHR,
pub src_infos_array: StridedDeviceAddressRegionKHR,
pub src_infos_count: DeviceAddress,
pub address_resolution_flags: ClusterAccelerationStructureAddressResolutionFlagsNV,
/* private fields */
}Contract
Native structure VkClusterAccelerationStructureCommandsInfoNV.
Khronos reference: VkClusterAccelerationStructureCommandsInfoNV
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
input
input: ClusterAccelerationStructureInputInfoNV<'a>Native field input.
dst_implicit_data
dst_implicit_data: DeviceAddressNative field dstImplicitData.
scratch_data
scratch_data: DeviceAddressNative field scratchData.
dst_addresses_array
dst_addresses_array: StridedDeviceAddressRegionKHRNative field dstAddressesArray.
dst_sizes_array
dst_sizes_array: StridedDeviceAddressRegionKHRNative field dstSizesArray.
src_infos_array
src_infos_array: StridedDeviceAddressRegionKHRNative field srcInfosArray.
src_infos_count
src_infos_count: DeviceAddressNative field srcInfosCount.
address_resolution_flags
address_resolution_flags: ClusterAccelerationStructureAddressResolutionFlagsNVNative field addressResolutionFlags.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_input
Set native field input without native effects.
set_dst_implicit_data
Set native field dstImplicitData without native effects.
set_scratch_data
Set native field scratchData without native effects.
set_dst_addresses_array
Set native field dstAddressesArray without native effects.
set_dst_sizes_array
Set native field dstSizesArray without native effects.
set_src_infos_array
Set native field srcInfosArray without native effects.
set_src_infos_count
Set native field srcInfosCount without native effects.
set_address_resolution_flags
Set native field addressResolutionFlags 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::ClusterAccelerationStructureGeometryFlagBitsNV
Contract
Open integer representation of VkClusterAccelerationStructureGeometryFlagBitsNV.
Khronos reference: VkClusterAccelerationStructureGeometryFlagBitsNV
Fields
0
0: u32Methods and associated items
CULL_DISABLE_BIT_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_GEOMETRY_CULL_DISABLE_BIT_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_GEOMETRY_CULL_DISABLE_BIT_NV
NO_DUPLICATE_ANYHIT_INVOCATION_BIT_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_GEOMETRY_NO_DUPLICATE_ANYHIT_INVOCATION_BIT_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_GEOMETRY_NO_DUPLICATE_ANYHIT_INVOCATION_BIT_NV
OPAQUE_BIT_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_GEOMETRY_OPAQUE_BIT_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_GEOMETRY_OPAQUE_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 ==.