vk · Structs · D14
12 public declarations with native signatures and source-owned contracts.
Stvk::DrawIndexedIndirectCommand
Contract
Native structure VkDrawIndexedIndirectCommand.
Fields
index_count
index_count: u32Native field indexCount.
instance_count
instance_count: u32Native field instanceCount.
first_index
first_index: u32Native field firstIndex.
vertex_offset
vertex_offset: i32Native field vertexOffset.
first_instance
first_instance: u32Native field firstInstance.
Methods and associated items
new
Construct the record with its default native state.
set_index_count
Set native field indexCount without native effects.
set_instance_count
Set native field instanceCount without native effects.
set_first_index
Set native field firstIndex without native effects.
set_vertex_offset
Set native field vertexOffset without native effects.
set_first_instance
Set native field firstInstance without native effects.
clone
default
Stvk::DrawIndirect2InfoKHR
Contract
Native structure VkDrawIndirect2InfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
address_range
address_range: StridedDeviceAddressRangeKHRNative field addressRange.
address_flags
address_flags: AddressCommandFlagsKHRNative field addressFlags.
draw_count
draw_count: u32Native field drawCount.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_address_range
Set native field addressRange without native effects.
set_address_flags
Set native field addressFlags without native effects.
set_draw_count
Set native field drawCount 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::DrawIndirectCommand
Contract
Native structure VkDrawIndirectCommand.
Fields
vertex_count
vertex_count: u32Native field vertexCount.
instance_count
instance_count: u32Native field instanceCount.
first_vertex
first_vertex: u32Native field firstVertex.
first_instance
first_instance: u32Native field firstInstance.
Methods and associated items
new
Construct the record with its default native state.
set_vertex_count
Set native field vertexCount without native effects.
set_instance_count
Set native field instanceCount without native effects.
set_first_vertex
Set native field firstVertex without native effects.
set_first_instance
Set native field firstInstance without native effects.
clone
default
Stvk::DrawIndirectCount2InfoKHR
pub struct DrawIndirectCount2InfoKHR<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub address_range: StridedDeviceAddressRangeKHR,
pub address_flags: AddressCommandFlagsKHR,
pub count_address_range: DeviceAddressRangeKHR,
pub count_address_flags: AddressCommandFlagsKHR,
pub max_draw_count: u32,
/* private fields */
}Contract
Native structure VkDrawIndirectCount2InfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
address_range
address_range: StridedDeviceAddressRangeKHRNative field addressRange.
address_flags
address_flags: AddressCommandFlagsKHRNative field addressFlags.
count_address_range
count_address_range: DeviceAddressRangeKHRNative field countAddressRange.
count_address_flags
count_address_flags: AddressCommandFlagsKHRNative field countAddressFlags.
max_draw_count
max_draw_count: u32Native field maxDrawCount.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_address_range
Set native field addressRange without native effects.
set_address_flags
Set native field addressFlags without native effects.
set_count_address_range
Set native field countAddressRange without native effects.
set_count_address_flags
Set native field countAddressFlags without native effects.
set_max_draw_count
Set native field maxDrawCount 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::DrawIndirectCountIndirectCommandEXT
Contract
Native structure VkDrawIndirectCountIndirectCommandEXT.
Fields
buffer_address
buffer_address: DeviceAddressNative field bufferAddress.
stride
stride: u32Native field stride.
command_count
command_count: u32Native field commandCount.
Methods and associated items
new
Construct the record with its default native state.
set_buffer_address
Set native field bufferAddress without native effects.
set_stride
Set native field stride without native effects.
set_command_count
Set native field commandCount without native effects.
clone
default
Stvk::DrawMeshTasksIndirectCommandEXT
Contract
Native structure VkDrawMeshTasksIndirectCommandEXT.
Fields
group_count_x
group_count_x: u32Native field groupCountX.
group_count_y
group_count_y: u32Native field groupCountY.
group_count_z
group_count_z: u32Native field groupCountZ.
Methods and associated items
new
Construct the record with its default native state.
set_group_count_x
Set native field groupCountX without native effects.
set_group_count_y
Set native field groupCountY without native effects.
set_group_count_z
Set native field groupCountZ without native effects.
clone
default
Stvk::DrawMeshTasksIndirectCommandNV
Contract
Native structure VkDrawMeshTasksIndirectCommandNV.
Fields
task_count
task_count: u32Native field taskCount.
first_task
first_task: u32Native field firstTask.
Methods and associated items
new
Construct the record with its default native state.
set_task_count
Set native field taskCount without native effects.
set_first_task
Set native field firstTask without native effects.
clone
default
Stvk::DriverId
Contract
Open integer representation of VkDriverId.
Fields
0
0: i32Methods and associated items
AMD_PROPRIETARY
Native value VK_DRIVER_ID_AMD_PROPRIETARY.
AMD_OPEN_SOURCE
Native value VK_DRIVER_ID_AMD_OPEN_SOURCE.
MESA_RADV
Native value VK_DRIVER_ID_MESA_RADV.
NVIDIA_PROPRIETARY
Native value VK_DRIVER_ID_NVIDIA_PROPRIETARY.
INTEL_PROPRIETARY_WINDOWS
Native value VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS.
INTEL_OPEN_SOURCE_MESA
Native value VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA.
IMAGINATION_PROPRIETARY
Native value VK_DRIVER_ID_IMAGINATION_PROPRIETARY.
QUALCOMM_PROPRIETARY
Native value VK_DRIVER_ID_QUALCOMM_PROPRIETARY.
ARM_PROPRIETARY
Native value VK_DRIVER_ID_ARM_PROPRIETARY.
GOOGLE_SWIFTSHADER
Native value VK_DRIVER_ID_GOOGLE_SWIFTSHADER.
GGP_PROPRIETARY
Native value VK_DRIVER_ID_GGP_PROPRIETARY.
BROADCOM_PROPRIETARY
Native value VK_DRIVER_ID_BROADCOM_PROPRIETARY.
MESA_LLVMPIPE
Native value VK_DRIVER_ID_MESA_LLVMPIPE.
MOLTENVK
Native value VK_DRIVER_ID_MOLTENVK.
COREAVI_PROPRIETARY
Native value VK_DRIVER_ID_COREAVI_PROPRIETARY.
JUICE_PROPRIETARY
Native value VK_DRIVER_ID_JUICE_PROPRIETARY.
VERISILICON_PROPRIETARY
Native value VK_DRIVER_ID_VERISILICON_PROPRIETARY.
MESA_TURNIP
Native value VK_DRIVER_ID_MESA_TURNIP.
MESA_V3DV
Native value VK_DRIVER_ID_MESA_V3DV.
MESA_PANVK
Native value VK_DRIVER_ID_MESA_PANVK.
SAMSUNG_PROPRIETARY
Native value VK_DRIVER_ID_SAMSUNG_PROPRIETARY.
MESA_VENUS
Native value VK_DRIVER_ID_MESA_VENUS.
MESA_DOZEN
Native value VK_DRIVER_ID_MESA_DOZEN.
MESA_NVK
Native value VK_DRIVER_ID_MESA_NVK.
IMAGINATION_OPEN_SOURCE_MESA
Native value VK_DRIVER_ID_IMAGINATION_OPEN_SOURCE_MESA.
Khronos reference: VK_DRIVER_ID_IMAGINATION_OPEN_SOURCE_MESA
MESA_HONEYKRISP
Native value VK_DRIVER_ID_MESA_HONEYKRISP.
VULKAN_SC_EMULATION_ON_VULKAN
Native value VK_DRIVER_ID_VULKAN_SC_EMULATION_ON_VULKAN.
Khronos reference: VK_DRIVER_ID_VULKAN_SC_EMULATION_ON_VULKAN
MESA_KOSMICKRISP
Native value VK_DRIVER_ID_MESA_KOSMICKRISP.
MESA_GFXSTREAM
Native value VK_DRIVER_ID_MESA_GFXSTREAM.
APE_SOFT
Native value VK_DRIVER_ID_APE_SOFT.
RESERVED_31
Native value VK_DRIVER_ID_RESERVED_31.
AMD_PROPRIETARY_KHR
Native value VK_DRIVER_ID_AMD_PROPRIETARY_KHR.
AMD_OPEN_SOURCE_KHR
Native value VK_DRIVER_ID_AMD_OPEN_SOURCE_KHR.
MESA_RADV_KHR
Native value VK_DRIVER_ID_MESA_RADV_KHR.
NVIDIA_PROPRIETARY_KHR
Native value VK_DRIVER_ID_NVIDIA_PROPRIETARY_KHR.
INTEL_PROPRIETARY_WINDOWS_KHR
Native value VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS_KHR.
Khronos reference: VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS_KHR
INTEL_OPEN_SOURCE_MESA_KHR
Native value VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA_KHR.
IMAGINATION_PROPRIETARY_KHR
Native value VK_DRIVER_ID_IMAGINATION_PROPRIETARY_KHR.
QUALCOMM_PROPRIETARY_KHR
Native value VK_DRIVER_ID_QUALCOMM_PROPRIETARY_KHR.
ARM_PROPRIETARY_KHR
Native value VK_DRIVER_ID_ARM_PROPRIETARY_KHR.
GOOGLE_SWIFTSHADER_KHR
Native value VK_DRIVER_ID_GOOGLE_SWIFTSHADER_KHR.
GGP_PROPRIETARY_KHR
Native value VK_DRIVER_ID_GGP_PROPRIETARY_KHR.
BROADCOM_PROPRIETARY_KHR
Native value VK_DRIVER_ID_BROADCOM_PROPRIETARY_KHR.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::DrmFormatModifierProperties2EXT
Contract
Native structure VkDrmFormatModifierProperties2EXT.
Fields
drm_format_modifier
drm_format_modifier: u64Native field drmFormatModifier.
drm_format_modifier_plane_count
drm_format_modifier_plane_count: u32Native field drmFormatModifierPlaneCount.
drm_format_modifier_tiling_features
drm_format_modifier_tiling_features: FormatFeatureFlags2Native field drmFormatModifierTilingFeatures.
Methods and associated items
new
Construct the record with its default native state.
set_drm_format_modifier
Set native field drmFormatModifier without native effects.
set_drm_format_modifier_plane_count
Set native field drmFormatModifierPlaneCount without native effects.
set_drm_format_modifier_tiling_features
Set native field drmFormatModifierTilingFeatures without native effects.
clone
default
Stvk::DrmFormatModifierPropertiesEXT
Contract
Native structure VkDrmFormatModifierPropertiesEXT.
Fields
drm_format_modifier
drm_format_modifier: u64Native field drmFormatModifier.
drm_format_modifier_plane_count
drm_format_modifier_plane_count: u32Native field drmFormatModifierPlaneCount.
drm_format_modifier_tiling_features
drm_format_modifier_tiling_features: FormatFeatureFlagsNative field drmFormatModifierTilingFeatures.
Methods and associated items
new
Construct the record with its default native state.
set_drm_format_modifier
Set native field drmFormatModifier without native effects.
set_drm_format_modifier_plane_count
Set native field drmFormatModifierPlaneCount without native effects.
set_drm_format_modifier_tiling_features
Set native field drmFormatModifierTilingFeatures without native effects.
clone
default
Stvk::DrmFormatModifierPropertiesList2EXT
Contract
Native structure VkDrmFormatModifierPropertiesList2EXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
drm_format_modifier_count
drm_format_modifier_count: u32Native field drmFormatModifierCount.
p_drm_format_modifier_properties
p_drm_format_modifier_properties: *mut DrmFormatModifierProperties2EXTNative field pDrmFormatModifierProperties.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_drm_format_modifier_count
Set native count drmFormatModifierCount 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_drm_format_modifier_properties
Borrow pDrmFormatModifierProperties and set checked native count drmFormatModifierCount.
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::DrmFormatModifierPropertiesListEXT
Contract
Native structure VkDrmFormatModifierPropertiesListEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
drm_format_modifier_count
drm_format_modifier_count: u32Native field drmFormatModifierCount.
p_drm_format_modifier_properties
p_drm_format_modifier_properties: *mut DrmFormatModifierPropertiesEXTNative field pDrmFormatModifierProperties.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_drm_format_modifier_count
Set native count drmFormatModifierCount 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_drm_format_modifier_properties
Borrow pDrmFormatModifierProperties and set checked native count drmFormatModifierCount.
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.