vk · Structs · A2
16 public declarations with native signatures and source-owned contracts.
Stvk::AccelerationStructureGeometryLinearSweptSpheresDataNV
pub struct AccelerationStructureGeometryLinearSweptSpheresDataNV<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub vertex_format: Format,
pub vertex_data: DeviceOrHostAddressConstKHR,
pub vertex_stride: DeviceSize,
pub radius_format: Format,
pub radius_data: DeviceOrHostAddressConstKHR,
pub radius_stride: DeviceSize,
pub index_type: IndexType,
pub index_data: DeviceOrHostAddressConstKHR,
pub index_stride: DeviceSize,
pub indexing_mode: RayTracingLssIndexingModeNV,
pub end_caps_mode: RayTracingLssPrimitiveEndCapsModeNV,
/* private fields */
}Contract
Native structure VkAccelerationStructureGeometryLinearSweptSpheresDataNV.
Khronos reference: VkAccelerationStructureGeometryLinearSweptSpheresDataNV
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
vertex_format
vertex_format: FormatNative field vertexFormat.
vertex_data
vertex_data: DeviceOrHostAddressConstKHRNative field vertexData.
vertex_stride
vertex_stride: DeviceSizeNative field vertexStride.
radius_format
radius_format: FormatNative field radiusFormat.
radius_data
radius_data: DeviceOrHostAddressConstKHRNative field radiusData.
radius_stride
radius_stride: DeviceSizeNative field radiusStride.
index_type
index_type: IndexTypeNative field indexType.
index_data
index_data: DeviceOrHostAddressConstKHRNative field indexData.
index_stride
index_stride: DeviceSizeNative field indexStride.
indexing_mode
indexing_mode: RayTracingLssIndexingModeNVNative field indexingMode.
end_caps_mode
end_caps_mode: RayTracingLssPrimitiveEndCapsModeNVNative field endCapsMode.
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_vertex_data
Set native field vertexData without native effects.
set_vertex_stride
Set native field vertexStride without native effects.
set_radius_format
Set native field radiusFormat without native effects.
set_radius_data
Set native field radiusData without native effects.
set_radius_stride
Set native field radiusStride without native effects.
set_index_type
Set native field indexType without native effects.
set_index_data
Set native field indexData without native effects.
set_index_stride
Set native field indexStride without native effects.
set_indexing_mode
Set native field indexingMode without native effects.
set_end_caps_mode
Set native field endCapsMode 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::AccelerationStructureGeometryMicromapDataKHR
pub struct AccelerationStructureGeometryMicromapDataKHR<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub usage_counts_count: u32,
pub p_usage_counts: *const MicromapUsageKHR,
pub pp_usage_counts: *const *const MicromapUsageKHR,
pub data: DeviceAddress,
pub triangle_array: DeviceAddress,
pub triangle_array_stride: DeviceSize,
/* private fields */
}Contract
Native structure VkAccelerationStructureGeometryMicromapDataKHR.
Khronos reference: VkAccelerationStructureGeometryMicromapDataKHR
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
usage_counts_count
usage_counts_count: u32Native field usageCountsCount.
p_usage_counts
p_usage_counts: *const MicromapUsageKHRNative field pUsageCounts.
pp_usage_counts
pp_usage_counts: *const *const MicromapUsageKHRNative field ppUsageCounts.
data
data: DeviceAddressNative field data.
triangle_array
triangle_array: DeviceAddressNative field triangleArray.
triangle_array_stride
triangle_array_stride: DeviceSizeNative field triangleArrayStride.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_usage_counts_count
Set native count usageCountsCount 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_usage_counts
Borrow pUsageCounts and set checked native count usageCountsCount.
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.
set_pp_usage_counts
Borrow ppUsageCounts and set checked native count usageCountsCount.
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.
set_data
Set native field data without native effects.
set_triangle_array
Set native field triangleArray without native effects.
set_triangle_array_stride
Set native field triangleArrayStride 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::AccelerationStructureGeometryMotionTrianglesDataNV
Contract
Native structure VkAccelerationStructureGeometryMotionTrianglesDataNV.
Khronos reference: VkAccelerationStructureGeometryMotionTrianglesDataNV
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
vertex_data
vertex_data: DeviceOrHostAddressConstKHRNative field vertexData.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_vertex_data
Set native field vertexData 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::AccelerationStructureGeometrySpheresDataNV
pub struct AccelerationStructureGeometrySpheresDataNV<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub vertex_format: Format,
pub vertex_data: DeviceOrHostAddressConstKHR,
pub vertex_stride: DeviceSize,
pub radius_format: Format,
pub radius_data: DeviceOrHostAddressConstKHR,
pub radius_stride: DeviceSize,
pub index_type: IndexType,
pub index_data: DeviceOrHostAddressConstKHR,
pub index_stride: DeviceSize,
/* private fields */
}Contract
Native structure VkAccelerationStructureGeometrySpheresDataNV.
Khronos reference: VkAccelerationStructureGeometrySpheresDataNV
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
vertex_format
vertex_format: FormatNative field vertexFormat.
vertex_data
vertex_data: DeviceOrHostAddressConstKHRNative field vertexData.
vertex_stride
vertex_stride: DeviceSizeNative field vertexStride.
radius_format
radius_format: FormatNative field radiusFormat.
radius_data
radius_data: DeviceOrHostAddressConstKHRNative field radiusData.
radius_stride
radius_stride: DeviceSizeNative field radiusStride.
index_type
index_type: IndexTypeNative field indexType.
index_data
index_data: DeviceOrHostAddressConstKHRNative field indexData.
index_stride
index_stride: DeviceSizeNative field indexStride.
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_vertex_data
Set native field vertexData without native effects.
set_vertex_stride
Set native field vertexStride without native effects.
set_radius_format
Set native field radiusFormat without native effects.
set_radius_data
Set native field radiusData without native effects.
set_radius_stride
Set native field radiusStride without native effects.
set_index_type
Set native field indexType without native effects.
set_index_data
Set native field indexData without native effects.
set_index_stride
Set native field indexStride 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::AccelerationStructureGeometryTrianglesDataKHR
pub struct AccelerationStructureGeometryTrianglesDataKHR<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub vertex_format: Format,
pub vertex_data: DeviceOrHostAddressConstKHR,
pub vertex_stride: DeviceSize,
pub max_vertex: u32,
pub index_type: IndexType,
pub index_data: DeviceOrHostAddressConstKHR,
pub transform_data: DeviceOrHostAddressConstKHR,
/* private fields */
}Contract
Native structure VkAccelerationStructureGeometryTrianglesDataKHR.
Khronos reference: VkAccelerationStructureGeometryTrianglesDataKHR
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
vertex_format
vertex_format: FormatNative field vertexFormat.
vertex_data
vertex_data: DeviceOrHostAddressConstKHRNative field vertexData.
vertex_stride
vertex_stride: DeviceSizeNative field vertexStride.
max_vertex
max_vertex: u32Native field maxVertex.
index_type
index_type: IndexTypeNative field indexType.
index_data
index_data: DeviceOrHostAddressConstKHRNative field indexData.
transform_data
transform_data: DeviceOrHostAddressConstKHRNative field transformData.
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_vertex_data
Set native field vertexData without native effects.
set_vertex_stride
Set native field vertexStride without native effects.
set_max_vertex
Set native field maxVertex without native effects.
set_index_type
Set native field indexType without native effects.
set_index_data
Set native field indexData without native effects.
set_transform_data
Set native field transformData 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::AccelerationStructureInfoNV
Contract
Native structure VkAccelerationStructureInfoNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
type
type: AccelerationStructureTypeNVNative field type.
flags
flags: BuildAccelerationStructureFlagsKHRNative field flags.
instance_count
instance_count: u32Native field instanceCount.
geometry_count
geometry_count: u32Native field geometryCount.
p_geometries
p_geometries: *const GeometryNV<'a>Native field pGeometries.
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_flags
Set native field flags without native effects.
set_instance_count
Set native field instanceCount without native effects.
set_geometry_count
Set native count geometryCount 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_geometries
Borrow pGeometries and set checked native count geometryCount.
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::AccelerationStructureInstanceKHR
Contract
Native structure VkAccelerationStructureInstanceKHR.
Fields
transform
transform: TransformMatrixKHRNative field transform.
_bitfield_1
_bitfield_1: u32_bitfield_2
_bitfield_2: u32acceleration_structure_reference
acceleration_structure_reference: u64Native field accelerationStructureReference.
Methods and associated items
instance_custom_index
Read native bitfield instanceCustomIndex.
set_instance_custom_index
Set native bitfield instanceCustomIndex, retaining its low 24 bits.
mask
Read native bitfield mask.
set_mask
Set native bitfield mask, retaining its low 8 bits.
instance_shader_binding_table_record_offset
Read native bitfield instanceShaderBindingTableRecordOffset.
set_instance_shader_binding_table_record_offset
Set native bitfield instanceShaderBindingTableRecordOffset, retaining its low 24 bits.
flags
Read native bitfield flags.
set_flags
Set native bitfield flags, retaining its low 8 bits.
new
Construct the record with its default native state.
set_transform
Set native field transform without native effects.
set_acceleration_structure_reference
Set native field accelerationStructureReference without native effects.
clone
default
Stvk::AccelerationStructureKHR
Contract
Raw Vulkan handle VkAccelerationStructureKHR.
Khronos reference: VkAccelerationStructureKHR
Calls using this identity must satisfy Vulkan lifetime and synchronization rules.
Fields
0
0: u64Methods and associated items
NULL
is_null
from_raw
as_raw
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::AccelerationStructureMatrixMotionInstanceNV
Contract
Native structure VkAccelerationStructureMatrixMotionInstanceNV.
Khronos reference: VkAccelerationStructureMatrixMotionInstanceNV
Fields
transform_t0
transform_t0: TransformMatrixKHRNative field transformT0.
transform_t1
transform_t1: TransformMatrixKHRNative field transformT1.
_bitfield_1
_bitfield_1: u32_bitfield_2
_bitfield_2: u32acceleration_structure_reference
acceleration_structure_reference: u64Native field accelerationStructureReference.
Methods and associated items
instance_custom_index
Read native bitfield instanceCustomIndex.
set_instance_custom_index
Set native bitfield instanceCustomIndex, retaining its low 24 bits.
mask
Read native bitfield mask.
set_mask
Set native bitfield mask, retaining its low 8 bits.
instance_shader_binding_table_record_offset
Read native bitfield instanceShaderBindingTableRecordOffset.
set_instance_shader_binding_table_record_offset
Set native bitfield instanceShaderBindingTableRecordOffset, retaining its low 24 bits.
flags
Read native bitfield flags.
set_flags
Set native bitfield flags, retaining its low 8 bits.
new
Construct the record with its default native state.
set_transform_t0
Set native field transformT0 without native effects.
set_transform_t1
Set native field transformT1 without native effects.
set_acceleration_structure_reference
Set native field accelerationStructureReference without native effects.
clone
default
Stvk::AccelerationStructureMemoryRequirementsInfoNV
Contract
Native structure VkAccelerationStructureMemoryRequirementsInfoNV.
Khronos reference: VkAccelerationStructureMemoryRequirementsInfoNV
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
type
type: AccelerationStructureMemoryRequirementsTypeNVNative field type.
acceleration_structure
acceleration_structure: AccelerationStructureNVNative field accelerationStructure.
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_acceleration_structure
Set native field accelerationStructure 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::AccelerationStructureMemoryRequirementsTypeNV
Contract
Open integer representation of VkAccelerationStructureMemoryRequirementsTypeNV.
Khronos reference: VkAccelerationStructureMemoryRequirementsTypeNV
Fields
0
0: i32Methods and associated items
OBJECT_NV
Native value VK_ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_OBJECT_NV.
Khronos reference: VK_ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_OBJECT_NV
BUILD_SCRATCH_NV
Native value VK_ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_BUILD_SCRATCH_NV.
Khronos reference: VK_ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_BUILD_SCRATCH_NV
UPDATE_SCRATCH_NV
Native value VK_ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_UPDATE_SCRATCH_NV.
Khronos reference: VK_ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_UPDATE_SCRATCH_NV
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::AccelerationStructureMotionInfoFlagsNV
Contract
Open integer representation of VkAccelerationStructureMotionInfoFlagsNV.
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::AccelerationStructureMotionInfoNV
Contract
Native structure VkAccelerationStructureMotionInfoNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
max_instances
max_instances: u32Native field maxInstances.
flags
flags: AccelerationStructureMotionInfoFlagsNVNative field flags.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_max_instances
Set native field maxInstances without native effects.
set_flags
Set native field flags 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::AccelerationStructureMotionInstanceFlagsNV
Contract
Open integer representation of VkAccelerationStructureMotionInstanceFlagsNV.
Khronos reference: VkAccelerationStructureMotionInstanceFlagsNV
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::AccelerationStructureMotionInstanceNV
Contract
Native structure VkAccelerationStructureMotionInstanceNV.
Fields
type
type: AccelerationStructureMotionInstanceTypeNVNative field type.
flags
flags: AccelerationStructureMotionInstanceFlagsNVNative field flags.
data
data: AccelerationStructureMotionInstanceDataNVNative field data.
Methods and associated items
new
Construct the record with its default native state.
set_type
Set native field type without native effects.
set_flags
Set native field flags without native effects.
set_data
Set native field data without native effects.
clone
default
Stvk::AccelerationStructureMotionInstanceTypeNV
Contract
Open integer representation of VkAccelerationStructureMotionInstanceTypeNV.
Khronos reference: VkAccelerationStructureMotionInstanceTypeNV
Fields
0
0: i32Methods and associated items
STATIC_NV
Native value VK_ACCELERATION_STRUCTURE_MOTION_INSTANCE_TYPE_STATIC_NV.
Khronos reference: VK_ACCELERATION_STRUCTURE_MOTION_INSTANCE_TYPE_STATIC_NV
MATRIX_MOTION_NV
Native value VK_ACCELERATION_STRUCTURE_MOTION_INSTANCE_TYPE_MATRIX_MOTION_NV.
Khronos reference: VK_ACCELERATION_STRUCTURE_MOTION_INSTANCE_TYPE_MATRIX_MOTION_NV
SRT_MOTION_NV
Native value VK_ACCELERATION_STRUCTURE_MOTION_INSTANCE_TYPE_SRT_MOTION_NV.
Khronos reference: VK_ACCELERATION_STRUCTURE_MOTION_INSTANCE_TYPE_SRT_MOTION_NV
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.