vk · Structs · P38
15 public declarations with native signatures and source-owned contracts.
Stvk::PresentTimingsInfoEXT
Contract
Native structure VkPresentTimingsInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
swapchain_count
swapchain_count: u32Native field swapchainCount.
p_timing_infos
p_timing_infos: *const PresentTimingInfoEXT<'a>Native field pTimingInfos.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_swapchain_count
Set native count swapchainCount 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_timing_infos
Borrow pTimingInfos and set checked native count swapchainCount.
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::PresentTimingSurfaceCapabilitiesEXT
pub struct PresentTimingSurfaceCapabilitiesEXT<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub present_timing_supported: Bool32,
pub present_at_absolute_time_supported: Bool32,
pub present_at_relative_time_supported: Bool32,
pub present_stage_queries: PresentStageFlagsEXT,
/* private fields */
}Contract
Native structure VkPresentTimingSurfaceCapabilitiesEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
present_timing_supported
present_timing_supported: Bool32Native field presentTimingSupported.
present_at_absolute_time_supported
present_at_absolute_time_supported: Bool32Native field presentAtAbsoluteTimeSupported.
present_at_relative_time_supported
present_at_relative_time_supported: Bool32Native field presentAtRelativeTimeSupported.
present_stage_queries
present_stage_queries: PresentStageFlagsEXTNative field presentStageQueries.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_present_timing_supported
Set native field presentTimingSupported without native effects.
set_present_at_absolute_time_supported
Set native field presentAtAbsoluteTimeSupported without native effects.
set_present_at_relative_time_supported
Set native field presentAtRelativeTimeSupported without native effects.
set_present_stage_queries
Set native field presentStageQueries 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::PresentWait2InfoKHR
Contract
Native structure VkPresentWait2InfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
present_id
present_id: u64Native field presentId.
timeout
timeout: u64Native field timeout.
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_timeout
Set native field timeout 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::PrimitiveTopology
Contract
Open integer representation of VkPrimitiveTopology.
Fields
0
0: i32Methods and associated items
POINT_LIST
Native value VK_PRIMITIVE_TOPOLOGY_POINT_LIST.
LINE_LIST
Native value VK_PRIMITIVE_TOPOLOGY_LINE_LIST.
LINE_STRIP
Native value VK_PRIMITIVE_TOPOLOGY_LINE_STRIP.
TRIANGLE_LIST
Native value VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST.
TRIANGLE_STRIP
Native value VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP.
TRIANGLE_FAN
Native value VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN.
LINE_LIST_WITH_ADJACENCY
Native value VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY.
Khronos reference: VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY
LINE_STRIP_WITH_ADJACENCY
Native value VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY.
Khronos reference: VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY
TRIANGLE_LIST_WITH_ADJACENCY
Native value VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY.
Khronos reference: VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY
TRIANGLE_STRIP_WITH_ADJACENCY
Native value VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY.
Khronos reference: VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY
PATCH_LIST
Native value VK_PRIMITIVE_TOPOLOGY_PATCH_LIST.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::PrivateDataSlot
Contract
Raw Vulkan handle VkPrivateDataSlot.
Khronos reference: VkPrivateDataSlot
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::PrivateDataSlotCreateFlagBits
Contract
Open integer representation of VkPrivateDataSlotCreateFlagBits.
Fields
0
0: u32Methods and associated items
BASE_OBJECT_HANDLE_BIT_NV
Native value VK_PRIVATE_DATA_SLOT_CREATE_BASE_OBJECT_HANDLE_BIT_NV.
Khronos reference: VK_PRIVATE_DATA_SLOT_CREATE_BASE_OBJECT_HANDLE_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::PrivateDataSlotCreateInfo
Contract
Native structure VkPrivateDataSlotCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: PrivateDataSlotCreateFlagsNative field flags.
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.
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::ProtectedSubmitInfo
Contract
Native structure VkProtectedSubmitInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
protected_submit
protected_submit: Bool32Native field protectedSubmit.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_protected_submit
Set native field protectedSubmit 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::ProvokingVertexModeEXT
Contract
Open integer representation of VkProvokingVertexModeEXT.
Fields
0
0: i32Methods and associated items
FIRST_VERTEX_EXT
Native value VK_PROVOKING_VERTEX_MODE_FIRST_VERTEX_EXT.
Khronos reference: VK_PROVOKING_VERTEX_MODE_FIRST_VERTEX_EXT
LAST_VERTEX_EXT
Native value VK_PROVOKING_VERTEX_MODE_LAST_VERTEX_EXT.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::PushConstantBankInfoNV
Contract
Native structure VkPushConstantBankInfoNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
bank
bank: u32Native field bank.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_bank
Set native field bank 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::PushConstantRange
Contract
Native structure VkPushConstantRange.
Fields
stage_flags
stage_flags: ShaderStageFlagsNative field stageFlags.
offset
offset: u32Native field offset.
size
size: u32Native field size.
Methods and associated items
new
Construct the record with its default native state.
set_stage_flags
Set native field stageFlags without native effects.
set_offset
Set native field offset without native effects.
set_size
Set native field size without native effects.
clone
default
Stvk::PushConstantsInfo
Contract
Native structure VkPushConstantsInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
layout
layout: PipelineLayoutNative field layout.
stage_flags
stage_flags: ShaderStageFlagsNative field stageFlags.
offset
offset: u32Native field offset.
size
size: u32Native field size.
p_values
p_values: *const c_voidNative field pValues.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_layout
Set native field layout without native effects.
set_stage_flags
Set native field stageFlags without native effects.
set_offset
Set native field offset without native effects.
set_size
Set native count size 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_values
Borrow pValues and set checked native byte size size.
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::PushDataInfoEXT
Contract
Native structure VkPushDataInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
offset
offset: u32Native field offset.
data
data: HostAddressRangeConstEXT<'a>Native field data.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_offset
Set native field offset without native effects.
set_data
Set native field data 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::PushDescriptorSetInfo
Contract
Native structure VkPushDescriptorSetInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
stage_flags
stage_flags: ShaderStageFlagsNative field stageFlags.
layout
layout: PipelineLayoutNative field layout.
set
set: u32Native field set.
descriptor_write_count
descriptor_write_count: u32Native field descriptorWriteCount.
p_descriptor_writes
p_descriptor_writes: *const WriteDescriptorSet<'a>Native field pDescriptorWrites.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_stage_flags
Set native field stageFlags without native effects.
set_layout
Set native field layout without native effects.
set_set
Set native field set without native effects.
set_descriptor_write_count
Set native count descriptorWriteCount 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_descriptor_writes
Borrow pDescriptorWrites and set checked native count descriptorWriteCount.
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::PushDescriptorSetWithTemplateInfo
Contract
Native structure VkPushDescriptorSetWithTemplateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
descriptor_update_template
descriptor_update_template: DescriptorUpdateTemplateNative field descriptorUpdateTemplate.
layout
layout: PipelineLayoutNative field layout.
set
set: u32Native field set.
p_data
p_data: *const c_voidNative field pData.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_descriptor_update_template
Set native field descriptorUpdateTemplate without native effects.
set_layout
Set native field layout without native effects.
set_set
Set native field set without native effects.
set_data
Set native pointer pData 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.