vk · Structs · C2
16 public declarations with native signatures and source-owned contracts.
Stvk::ClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV
Contract
Native structure VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV.
Khronos reference: VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV
Fields
_bitfield_1
_bitfield_1: u32Methods and associated items
geometry_index
Read native bitfield geometryIndex.
set_geometry_index
Set native bitfield geometryIndex, retaining its low 24 bits.
reserved
Read native bitfield reserved.
set_reserved
Set native bitfield reserved, retaining its low 5 bits.
geometry_flags
Read native bitfield geometryFlags.
set_geometry_flags
Set native bitfield geometryFlags, retaining its low 3 bits.
new
Construct the record with its default native state.
clone
default
Stvk::ClusterAccelerationStructureGetTemplateIndicesInfoNV
Contract
Native structure VkClusterAccelerationStructureGetTemplateIndicesInfoNV.
Khronos reference: VkClusterAccelerationStructureGetTemplateIndicesInfoNV
Fields
cluster_template_address
cluster_template_address: DeviceAddressNative field clusterTemplateAddress.
Methods and associated items
new
Construct the record with its default native state.
set_cluster_template_address
Set native field clusterTemplateAddress without native effects.
clone
default
Stvk::ClusterAccelerationStructureIndexFormatFlagBitsNV
Contract
Open integer representation of VkClusterAccelerationStructureIndexFormatFlagBitsNV.
Khronos reference: VkClusterAccelerationStructureIndexFormatFlagBitsNV
Fields
0
0: u32Methods and associated items
_8BIT_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_INDEX_FORMAT_8BIT_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_INDEX_FORMAT_8BIT_NV
_16BIT_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_INDEX_FORMAT_16BIT_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_INDEX_FORMAT_16BIT_NV
_32BIT_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_INDEX_FORMAT_32BIT_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_INDEX_FORMAT_32BIT_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::ClusterAccelerationStructureInputInfoNV
pub struct ClusterAccelerationStructureInputInfoNV<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub max_acceleration_structure_count: u32,
pub flags: BuildAccelerationStructureFlagsKHR,
pub op_type: ClusterAccelerationStructureOpTypeNV,
pub op_mode: ClusterAccelerationStructureOpModeNV,
pub op_input: ClusterAccelerationStructureOpInputNV<'a>,
/* private fields */
}Contract
Native structure VkClusterAccelerationStructureInputInfoNV.
Khronos reference: VkClusterAccelerationStructureInputInfoNV
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
max_acceleration_structure_count
max_acceleration_structure_count: u32Native field maxAccelerationStructureCount.
flags
flags: BuildAccelerationStructureFlagsKHRNative field flags.
op_type
op_type: ClusterAccelerationStructureOpTypeNVNative field opType.
op_mode
op_mode: ClusterAccelerationStructureOpModeNVNative field opMode.
op_input
op_input: ClusterAccelerationStructureOpInputNV<'a>Native field opInput.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_max_acceleration_structure_count
Set native field maxAccelerationStructureCount without native effects.
set_flags
Set native field flags without native effects.
set_op_type
Set native field opType without native effects.
set_op_mode
Set native field opMode without native effects.
set_op_input
Set native field opInput 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::ClusterAccelerationStructureInstantiateClusterInfoNV
Contract
Native structure VkClusterAccelerationStructureInstantiateClusterInfoNV.
Khronos reference: VkClusterAccelerationStructureInstantiateClusterInfoNV
Fields
cluster_id_offset
cluster_id_offset: u32Native field clusterIdOffset.
_bitfield_1
_bitfield_1: u32cluster_template_address
cluster_template_address: DeviceAddressNative field clusterTemplateAddress.
vertex_buffer
vertex_buffer: StridedDeviceAddressNVNative field vertexBuffer.
Methods and associated items
geometry_index_offset
Read native bitfield geometryIndexOffset.
set_geometry_index_offset
Set native bitfield geometryIndexOffset, retaining its low 24 bits.
reserved
Read native bitfield reserved.
set_reserved
Set native bitfield reserved, retaining its low 8 bits.
new
Construct the record with its default native state.
set_cluster_id_offset
Set native field clusterIdOffset without native effects.
set_cluster_template_address
Set native field clusterTemplateAddress without native effects.
set_vertex_buffer
Set native field vertexBuffer without native effects.
clone
default
Stvk::ClusterAccelerationStructureMoveObjectsInfoNV
Contract
Native structure VkClusterAccelerationStructureMoveObjectsInfoNV.
Khronos reference: VkClusterAccelerationStructureMoveObjectsInfoNV
Fields
src_acceleration_structure
src_acceleration_structure: DeviceAddressNative field srcAccelerationStructure.
Methods and associated items
new
Construct the record with its default native state.
set_src_acceleration_structure
Set native field srcAccelerationStructure without native effects.
clone
default
Stvk::ClusterAccelerationStructureMoveObjectsInputNV
Contract
Native structure VkClusterAccelerationStructureMoveObjectsInputNV.
Khronos reference: VkClusterAccelerationStructureMoveObjectsInputNV
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
type
type: ClusterAccelerationStructureTypeNVNative field type.
no_move_overlap
no_move_overlap: Bool32Native field noMoveOverlap.
max_moved_bytes
max_moved_bytes: DeviceSizeNative field maxMovedBytes.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_type
Set native field type without native effects.
set_no_move_overlap
Set native field noMoveOverlap without native effects.
set_max_moved_bytes
Set native field maxMovedBytes 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::ClusterAccelerationStructureOpModeNV
Contract
Open integer representation of VkClusterAccelerationStructureOpModeNV.
Fields
0
0: i32Methods and associated items
IMPLICIT_DESTINATIONS_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_OP_MODE_IMPLICIT_DESTINATIONS_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_OP_MODE_IMPLICIT_DESTINATIONS_NV
EXPLICIT_DESTINATIONS_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_OP_MODE_EXPLICIT_DESTINATIONS_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_OP_MODE_EXPLICIT_DESTINATIONS_NV
COMPUTE_SIZES_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_OP_MODE_COMPUTE_SIZES_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_OP_MODE_COMPUTE_SIZES_NV
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::ClusterAccelerationStructureOpTypeNV
Contract
Open integer representation of VkClusterAccelerationStructureOpTypeNV.
Fields
0
0: i32Methods and associated items
MOVE_OBJECTS_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_OP_TYPE_MOVE_OBJECTS_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_OP_TYPE_MOVE_OBJECTS_NV
BUILD_CLUSTERS_BOTTOM_LEVEL_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_OP_TYPE_BUILD_CLUSTERS_BOTTOM_LEVEL_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_OP_TYPE_BUILD_CLUSTERS_BOTTOM_LEVEL_NV
BUILD_TRIANGLE_CLUSTER_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_OP_TYPE_BUILD_TRIANGLE_CLUSTER_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_OP_TYPE_BUILD_TRIANGLE_CLUSTER_NV
BUILD_TRIANGLE_CLUSTER_TEMPLATE_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_OP_TYPE_BUILD_TRIANGLE_CLUSTER_TEMPLATE_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_OP_TYPE_BUILD_TRIANGLE_CLUSTER_TEMPLATE_NV
INSTANTIATE_TRIANGLE_CLUSTER_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_OP_TYPE_INSTANTIATE_TRIANGLE_CLUSTER_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_OP_TYPE_INSTANTIATE_TRIANGLE_CLUSTER_NV
GET_CLUSTER_TEMPLATE_INDICES_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_OP_TYPE_GET_CLUSTER_TEMPLATE_INDICES_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_OP_TYPE_GET_CLUSTER_TEMPLATE_INDICES_NV
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::ClusterAccelerationStructureTriangleClusterInputNV
pub struct ClusterAccelerationStructureTriangleClusterInputNV<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub vertex_format: Format,
pub max_geometry_index_value: u32,
pub max_cluster_unique_geometry_count: u32,
pub max_cluster_triangle_count: u32,
pub max_cluster_vertex_count: u32,
pub max_total_triangle_count: u32,
pub max_total_vertex_count: u32,
pub min_position_truncate_bit_count: u32,
/* private fields */
}Contract
Native structure VkClusterAccelerationStructureTriangleClusterInputNV.
Khronos reference: VkClusterAccelerationStructureTriangleClusterInputNV
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
vertex_format
vertex_format: FormatNative field vertexFormat.
max_geometry_index_value
max_geometry_index_value: u32Native field maxGeometryIndexValue.
max_cluster_unique_geometry_count
max_cluster_unique_geometry_count: u32Native field maxClusterUniqueGeometryCount.
max_cluster_triangle_count
max_cluster_triangle_count: u32Native field maxClusterTriangleCount.
max_cluster_vertex_count
max_cluster_vertex_count: u32Native field maxClusterVertexCount.
max_total_triangle_count
max_total_triangle_count: u32Native field maxTotalTriangleCount.
max_total_vertex_count
max_total_vertex_count: u32Native field maxTotalVertexCount.
min_position_truncate_bit_count
min_position_truncate_bit_count: u32Native field minPositionTruncateBitCount.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_vertex_format
Set native field vertexFormat without native effects.
set_max_geometry_index_value
Set native field maxGeometryIndexValue without native effects.
set_max_cluster_unique_geometry_count
Set native field maxClusterUniqueGeometryCount without native effects.
set_max_cluster_triangle_count
Set native field maxClusterTriangleCount without native effects.
set_max_cluster_vertex_count
Set native field maxClusterVertexCount without native effects.
set_max_total_triangle_count
Set native field maxTotalTriangleCount without native effects.
set_max_total_vertex_count
Set native field maxTotalVertexCount without native effects.
set_min_position_truncate_bit_count
Set native field minPositionTruncateBitCount 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::ClusterAccelerationStructureTypeNV
Contract
Open integer representation of VkClusterAccelerationStructureTypeNV.
Fields
0
0: i32Methods and associated items
CLUSTERS_BOTTOM_LEVEL_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_TYPE_CLUSTERS_BOTTOM_LEVEL_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_TYPE_CLUSTERS_BOTTOM_LEVEL_NV
TRIANGLE_CLUSTER_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_TYPE_TRIANGLE_CLUSTER_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_TYPE_TRIANGLE_CLUSTER_NV
TRIANGLE_CLUSTER_TEMPLATE_NV
Native value VK_CLUSTER_ACCELERATION_STRUCTURE_TYPE_TRIANGLE_CLUSTER_TEMPLATE_NV.
Khronos reference: VK_CLUSTER_ACCELERATION_STRUCTURE_TYPE_TRIANGLE_CLUSTER_TEMPLATE_NV
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::CoarseSampleLocationNV
Contract
Native structure VkCoarseSampleLocationNV.
Fields
pixel_x
pixel_x: u32Native field pixelX.
pixel_y
pixel_y: u32Native field pixelY.
sample
sample: u32Native field sample.
Methods and associated items
new
Construct the record with its default native state.
set_pixel_x
Set native field pixelX without native effects.
set_pixel_y
Set native field pixelY without native effects.
set_sample
Set native field sample without native effects.
clone
default
Stvk::CoarseSampleOrderCustomNV
Contract
Native structure VkCoarseSampleOrderCustomNV.
Fields
shading_rate
shading_rate: ShadingRatePaletteEntryNVNative field shadingRate.
sample_count
sample_count: u32Native field sampleCount.
sample_location_count
sample_location_count: u32Native field sampleLocationCount.
p_sample_locations
p_sample_locations: *const CoarseSampleLocationNVNative field pSampleLocations.
Methods and associated items
new
Construct the record with its default native state.
set_shading_rate
Set native field shadingRate without native effects.
set_sample_count
Set native field sampleCount without native effects.
set_sample_location_count
Set native count sampleLocationCount 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_sample_locations
Borrow pSampleLocations and set checked native count sampleLocationCount.
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.
clone
default
Stvk::CoarseSampleOrderTypeNV
Contract
Open integer representation of VkCoarseSampleOrderTypeNV.
Fields
0
0: i32Methods and associated items
DEFAULT_NV
Native value VK_COARSE_SAMPLE_ORDER_TYPE_DEFAULT_NV.
CUSTOM_NV
Native value VK_COARSE_SAMPLE_ORDER_TYPE_CUSTOM_NV.
PIXEL_MAJOR_NV
Native value VK_COARSE_SAMPLE_ORDER_TYPE_PIXEL_MAJOR_NV.
Khronos reference: VK_COARSE_SAMPLE_ORDER_TYPE_PIXEL_MAJOR_NV
SAMPLE_MAJOR_NV
Native value VK_COARSE_SAMPLE_ORDER_TYPE_SAMPLE_MAJOR_NV.
Khronos reference: VK_COARSE_SAMPLE_ORDER_TYPE_SAMPLE_MAJOR_NV
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::ColorBlendAdvancedEXT
Contract
Native structure VkColorBlendAdvancedEXT.
Fields
advanced_blend_op
advanced_blend_op: BlendOpNative field advancedBlendOp.
src_premultiplied
src_premultiplied: Bool32Native field srcPremultiplied.
dst_premultiplied
dst_premultiplied: Bool32Native field dstPremultiplied.
blend_overlap
blend_overlap: BlendOverlapEXTNative field blendOverlap.
clamp_results
clamp_results: Bool32Native field clampResults.
Methods and associated items
new
Construct the record with its default native state.
set_advanced_blend_op
Set native field advancedBlendOp without native effects.
set_src_premultiplied
Set native field srcPremultiplied without native effects.
set_dst_premultiplied
Set native field dstPremultiplied without native effects.
set_blend_overlap
Set native field blendOverlap without native effects.
set_clamp_results
Set native field clampResults without native effects.
clone
default
Stvk::ColorBlendEquationEXT
Contract
Native structure VkColorBlendEquationEXT.
Fields
src_color_blend_factor
src_color_blend_factor: BlendFactorNative field srcColorBlendFactor.
dst_color_blend_factor
dst_color_blend_factor: BlendFactorNative field dstColorBlendFactor.
color_blend_op
color_blend_op: BlendOpNative field colorBlendOp.
src_alpha_blend_factor
src_alpha_blend_factor: BlendFactorNative field srcAlphaBlendFactor.
dst_alpha_blend_factor
dst_alpha_blend_factor: BlendFactorNative field dstAlphaBlendFactor.
alpha_blend_op
alpha_blend_op: BlendOpNative field alphaBlendOp.
Methods and associated items
new
Construct the record with its default native state.
set_src_color_blend_factor
Set native field srcColorBlendFactor without native effects.
set_dst_color_blend_factor
Set native field dstColorBlendFactor without native effects.
set_color_blend_op
Set native field colorBlendOp without native effects.
set_src_alpha_blend_factor
Set native field srcAlphaBlendFactor without native effects.
set_dst_alpha_blend_factor
Set native field dstAlphaBlendFactor without native effects.
set_alpha_blend_op
Set native field alphaBlendOp without native effects.