vk · Structs · P1
16 public declarations with native signatures and source-owned contracts.
Stvk::PartitionedAccelerationStructureFlagsNV
Contract
Native structure VkPartitionedAccelerationStructureFlagsNV.
Khronos reference: VkPartitionedAccelerationStructureFlagsNV
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
enable_partition_translation
enable_partition_translation: Bool32Native field enablePartitionTranslation.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_enable_partition_translation
Set native field enablePartitionTranslation 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::PartitionedAccelerationStructureInstanceFlagBitsNV
Contract
Open integer representation of VkPartitionedAccelerationStructureInstanceFlagBitsNV.
Khronos reference: VkPartitionedAccelerationStructureInstanceFlagBitsNV
Fields
0
0: u32Methods and associated items
FLAG_TRIANGLE_FACING_CULL_DISABLE_BIT_NV
Native value VK_PARTITIONED_ACCELERATION_STRUCTURE_INSTANCE_FLAG_TRIANGLE_FACING_CULL_DISABLE_BIT_NV.
FLAG_TRIANGLE_FLIP_FACING_BIT_NV
Native value VK_PARTITIONED_ACCELERATION_STRUCTURE_INSTANCE_FLAG_TRIANGLE_FLIP_FACING_BIT_NV.
Khronos reference: VK_PARTITIONED_ACCELERATION_STRUCTURE_INSTANCE_FLAG_TRIANGLE_FLIP_FACING_BIT_NV
FLAG_FORCE_OPAQUE_BIT_NV
Native value VK_PARTITIONED_ACCELERATION_STRUCTURE_INSTANCE_FLAG_FORCE_OPAQUE_BIT_NV.
Khronos reference: VK_PARTITIONED_ACCELERATION_STRUCTURE_INSTANCE_FLAG_FORCE_OPAQUE_BIT_NV
FLAG_FORCE_NO_OPAQUE_BIT_NV
Native value VK_PARTITIONED_ACCELERATION_STRUCTURE_INSTANCE_FLAG_FORCE_NO_OPAQUE_BIT_NV.
Khronos reference: VK_PARTITIONED_ACCELERATION_STRUCTURE_INSTANCE_FLAG_FORCE_NO_OPAQUE_BIT_NV
FLAG_ENABLE_EXPLICIT_BOUNDING_BOX_NV
Native value VK_PARTITIONED_ACCELERATION_STRUCTURE_INSTANCE_FLAG_ENABLE_EXPLICIT_BOUNDING_BOX_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::PartitionedAccelerationStructureInstancesInputNV
pub struct PartitionedAccelerationStructureInstancesInputNV<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub flags: BuildAccelerationStructureFlagsKHR,
pub instance_count: u32,
pub max_instance_per_partition_count: u32,
pub partition_count: u32,
pub max_instance_in_global_partition_count: u32,
/* private fields */
}Contract
Native structure VkPartitionedAccelerationStructureInstancesInputNV.
Khronos reference: VkPartitionedAccelerationStructureInstancesInputNV
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
flags
flags: BuildAccelerationStructureFlagsKHRNative field flags.
instance_count
instance_count: u32Native field instanceCount.
max_instance_per_partition_count
max_instance_per_partition_count: u32Native field maxInstancePerPartitionCount.
partition_count
partition_count: u32Native field partitionCount.
max_instance_in_global_partition_count
max_instance_in_global_partition_count: u32Native field maxInstanceInGlobalPartitionCount.
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_instance_count
Set native field instanceCount without native effects.
set_max_instance_per_partition_count
Set native field maxInstancePerPartitionCount without native effects.
set_partition_count
Set native field partitionCount without native effects.
set_max_instance_in_global_partition_count
Set native field maxInstanceInGlobalPartitionCount 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::PartitionedAccelerationStructureOpTypeNV
Contract
Open integer representation of VkPartitionedAccelerationStructureOpTypeNV.
Khronos reference: VkPartitionedAccelerationStructureOpTypeNV
Fields
0
0: i32Methods and associated items
WRITE_INSTANCE_NV
Native value VK_PARTITIONED_ACCELERATION_STRUCTURE_OP_TYPE_WRITE_INSTANCE_NV.
Khronos reference: VK_PARTITIONED_ACCELERATION_STRUCTURE_OP_TYPE_WRITE_INSTANCE_NV
UPDATE_INSTANCE_NV
Native value VK_PARTITIONED_ACCELERATION_STRUCTURE_OP_TYPE_UPDATE_INSTANCE_NV.
Khronos reference: VK_PARTITIONED_ACCELERATION_STRUCTURE_OP_TYPE_UPDATE_INSTANCE_NV
WRITE_PARTITION_TRANSLATION_NV
Native value VK_PARTITIONED_ACCELERATION_STRUCTURE_OP_TYPE_WRITE_PARTITION_TRANSLATION_NV.
Khronos reference: VK_PARTITIONED_ACCELERATION_STRUCTURE_OP_TYPE_WRITE_PARTITION_TRANSLATION_NV
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::PartitionedAccelerationStructureUpdateInstanceDataNV
Contract
Native structure VkPartitionedAccelerationStructureUpdateInstanceDataNV.
Khronos reference: VkPartitionedAccelerationStructureUpdateInstanceDataNV
Fields
instance_index
instance_index: u32Native field instanceIndex.
instance_contribution_to_hit_group_index
instance_contribution_to_hit_group_index: u32Native field instanceContributionToHitGroupIndex.
acceleration_structure
acceleration_structure: DeviceAddressNative field accelerationStructure.
Methods and associated items
new
Construct the record with its default native state.
set_instance_index
Set native field instanceIndex without native effects.
set_instance_contribution_to_hit_group_index
Set native field instanceContributionToHitGroupIndex without native effects.
set_acceleration_structure
Set native field accelerationStructure without native effects.
clone
default
Stvk::PartitionedAccelerationStructureWriteInstanceDataNV
#[repr(C)]pub struct PartitionedAccelerationStructureWriteInstanceDataNV {
pub transform: TransformMatrixKHR,
pub explicit_aabb: [f32; 6],
pub instance_id: u32,
pub instance_mask: u32,
pub instance_contribution_to_hit_group_index: u32,
pub instance_flags: PartitionedAccelerationStructureInstanceFlagsNV,
pub instance_index: u32,
pub partition_index: u32,
pub acceleration_structure: DeviceAddress,
}Contract
Native structure VkPartitionedAccelerationStructureWriteInstanceDataNV.
Khronos reference: VkPartitionedAccelerationStructureWriteInstanceDataNV
Fields
transform
transform: TransformMatrixKHRNative field transform.
explicit_aabb
explicit_aabb: [f32; 6]Native field explicitAABB.
instance_id
instance_id: u32Native field instanceID.
instance_mask
instance_mask: u32Native field instanceMask.
instance_contribution_to_hit_group_index
instance_contribution_to_hit_group_index: u32Native field instanceContributionToHitGroupIndex.
instance_flags
instance_flags: PartitionedAccelerationStructureInstanceFlagsNVNative field instanceFlags.
instance_index
instance_index: u32Native field instanceIndex.
partition_index
partition_index: u32Native field partitionIndex.
acceleration_structure
acceleration_structure: DeviceAddressNative field accelerationStructure.
Methods and associated items
new
Construct the record with its default native state.
set_transform
Set native field transform without native effects.
set_explicit_aabb
Set native field explicitAABB without native effects.
set_instance_id
Set native field instanceID without native effects.
set_instance_mask
Set native field instanceMask without native effects.
set_instance_contribution_to_hit_group_index
Set native field instanceContributionToHitGroupIndex without native effects.
set_instance_flags
Set native field instanceFlags without native effects.
set_instance_index
Set native field instanceIndex without native effects.
set_partition_index
Set native field partitionIndex without native effects.
set_acceleration_structure
Set native field accelerationStructure without native effects.
clone
default
Stvk::PartitionedAccelerationStructureWritePartitionTranslationDataNV
Contract
Native structure VkPartitionedAccelerationStructureWritePartitionTranslationDataNV.
Khronos reference: VkPartitionedAccelerationStructureWritePartitionTranslationDataNV
Fields
partition_index
partition_index: u32Native field partitionIndex.
partition_translation
partition_translation: [f32; 3]Native field partitionTranslation.
Methods and associated items
new
Construct the record with its default native state.
set_partition_index
Set native field partitionIndex without native effects.
set_partition_translation
Set native field partitionTranslation without native effects.
clone
default
Stvk::PastPresentationTimingEXT
pub struct PastPresentationTimingEXT<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub present_id: u64,
pub target_time: u64,
pub present_stage_count: u32,
pub p_present_stages: *mut PresentStageTimeEXT,
pub time_domain: TimeDomainKHR,
pub time_domain_id: u64,
pub report_complete: Bool32,
/* private fields */
}Contract
Native structure VkPastPresentationTimingEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
present_id
present_id: u64Native field presentId.
target_time
target_time: u64Native field targetTime.
present_stage_count
present_stage_count: u32Native field presentStageCount.
p_present_stages
p_present_stages: *mut PresentStageTimeEXTNative field pPresentStages.
time_domain
time_domain: TimeDomainKHRNative field timeDomain.
time_domain_id
time_domain_id: u64Native field timeDomainId.
report_complete
report_complete: Bool32Native field reportComplete.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_present_id
Set native field presentId without native effects.
set_target_time
Set native field targetTime without native effects.
set_present_stage_count
Set native count presentStageCount 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_present_stages
Borrow pPresentStages and set checked native count presentStageCount.
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_time_domain
Set native field timeDomain without native effects.
set_time_domain_id
Set native field timeDomainId without native effects.
set_report_complete
Set native field reportComplete 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::PastPresentationTimingFlagBitsEXT
Contract
Open integer representation of VkPastPresentationTimingFlagBitsEXT.
Fields
0
0: u32Methods and associated items
ALLOW_PARTIAL_RESULTS_BIT_EXT
Native value VK_PAST_PRESENTATION_TIMING_ALLOW_PARTIAL_RESULTS_BIT_EXT.
Khronos reference: VK_PAST_PRESENTATION_TIMING_ALLOW_PARTIAL_RESULTS_BIT_EXT
ALLOW_OUT_OF_ORDER_RESULTS_BIT_EXT
Native value VK_PAST_PRESENTATION_TIMING_ALLOW_OUT_OF_ORDER_RESULTS_BIT_EXT.
Khronos reference: VK_PAST_PRESENTATION_TIMING_ALLOW_OUT_OF_ORDER_RESULTS_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::PastPresentationTimingGOOGLE
Contract
Native structure VkPastPresentationTimingGOOGLE.
Fields
present_id
present_id: u32Native field presentID.
desired_present_time
desired_present_time: u64Native field desiredPresentTime.
actual_present_time
actual_present_time: u64Native field actualPresentTime.
earliest_present_time
earliest_present_time: u64Native field earliestPresentTime.
present_margin
present_margin: u64Native field presentMargin.
Methods and associated items
new
Construct the record with its default native state.
set_present_id
Set native field presentID without native effects.
set_desired_present_time
Set native field desiredPresentTime without native effects.
set_actual_present_time
Set native field actualPresentTime without native effects.
set_earliest_present_time
Set native field earliestPresentTime without native effects.
set_present_margin
Set native field presentMargin without native effects.
clone
default
Stvk::PastPresentationTimingInfoEXT
Contract
Native structure VkPastPresentationTimingInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: PastPresentationTimingFlagsEXTNative field flags.
swapchain
swapchain: SwapchainKHRNative field swapchain.
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_swapchain
Set native field swapchain 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::PastPresentationTimingPropertiesEXT
Contract
Native structure VkPastPresentationTimingPropertiesEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
timing_properties_counter
timing_properties_counter: u64Native field timingPropertiesCounter.
time_domains_counter
time_domains_counter: u64Native field timeDomainsCounter.
presentation_timing_count
presentation_timing_count: u32Native field presentationTimingCount.
p_presentation_timings
p_presentation_timings: *mut PastPresentationTimingEXT<'a>Native field pPresentationTimings.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_timing_properties_counter
Set native field timingPropertiesCounter without native effects.
set_time_domains_counter
Set native field timeDomainsCounter without native effects.
set_presentation_timing_count
Set native count presentationTimingCount 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_presentation_timings
Borrow pPresentationTimings and set checked native count presentationTimingCount.
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::PeerMemoryFeatureFlagBits
Contract
Open integer representation of VkPeerMemoryFeatureFlagBits.
Fields
0
0: u32Methods and associated items
COPY_SRC_BIT
Native value VK_PEER_MEMORY_FEATURE_COPY_SRC_BIT.
COPY_DST_BIT
Native value VK_PEER_MEMORY_FEATURE_COPY_DST_BIT.
GENERIC_SRC_BIT
Native value VK_PEER_MEMORY_FEATURE_GENERIC_SRC_BIT.
GENERIC_DST_BIT
Native value VK_PEER_MEMORY_FEATURE_GENERIC_DST_BIT.
COPY_SRC_BIT_KHR
Native value VK_PEER_MEMORY_FEATURE_COPY_SRC_BIT_KHR.
COPY_DST_BIT_KHR
Native value VK_PEER_MEMORY_FEATURE_COPY_DST_BIT_KHR.
GENERIC_SRC_BIT_KHR
Native value VK_PEER_MEMORY_FEATURE_GENERIC_SRC_BIT_KHR.
Khronos reference: VK_PEER_MEMORY_FEATURE_GENERIC_SRC_BIT_KHR
GENERIC_DST_BIT_KHR
Native value VK_PEER_MEMORY_FEATURE_GENERIC_DST_BIT_KHR.
Khronos reference: VK_PEER_MEMORY_FEATURE_GENERIC_DST_BIT_KHR
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::PerfHintInfoQCOM
Contract
Native structure VkPerfHintInfoQCOM.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
type
type: PerfHintTypeQCOMNative field type.
scale
scale: u32Native field scale.
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_scale
Set native field scale 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::PerfHintTypeQCOM
Contract
Open integer representation of VkPerfHintTypeQCOM.
Fields
0
0: i32Methods and associated items
DEFAULT_QCOM
Native value VK_PERF_HINT_TYPE_DEFAULT_QCOM.
FREQUENCY_MIN_QCOM
Native value VK_PERF_HINT_TYPE_FREQUENCY_MIN_QCOM.
FREQUENCY_MAX_QCOM
Native value VK_PERF_HINT_TYPE_FREQUENCY_MAX_QCOM.
FREQUENCY_SCALED_QCOM
Native value VK_PERF_HINT_TYPE_FREQUENCY_SCALED_QCOM.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::PerformanceConfigurationAcquireInfoINTEL
Contract
Native structure VkPerformanceConfigurationAcquireInfoINTEL.
Khronos reference: VkPerformanceConfigurationAcquireInfoINTEL
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
type
type: PerformanceConfigurationTypeINTELNative field type.
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.
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.