vk · Structs · S5
16 public declarations with native signatures and source-owned contracts.
Stvk::ShaderModuleValidationCacheCreateInfoEXT
Contract
Native structure VkShaderModuleValidationCacheCreateInfoEXT.
Khronos reference: VkShaderModuleValidationCacheCreateInfoEXT
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
validation_cache
validation_cache: ValidationCacheEXTNative field validationCache.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_validation_cache
Set native field validationCache 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::ShaderResourceUsageAMD
Contract
Native structure VkShaderResourceUsageAMD.
Fields
num_used_vgprs
num_used_vgprs: u32Native field numUsedVgprs.
num_used_sgprs
num_used_sgprs: u32Native field numUsedSgprs.
lds_size_per_local_work_group
lds_size_per_local_work_group: u32Native field ldsSizePerLocalWorkGroup.
lds_usage_size_in_bytes
lds_usage_size_in_bytes: usizeNative field ldsUsageSizeInBytes.
scratch_mem_usage_in_bytes
scratch_mem_usage_in_bytes: usizeNative field scratchMemUsageInBytes.
Methods and associated items
new
Construct the record with its default native state.
set_num_used_vgprs
Set native field numUsedVgprs without native effects.
set_num_used_sgprs
Set native field numUsedSgprs without native effects.
set_lds_size_per_local_work_group
Set native field ldsSizePerLocalWorkGroup without native effects.
set_lds_usage_size_in_bytes
Set native field ldsUsageSizeInBytes without native effects.
set_scratch_mem_usage_in_bytes
Set native field scratchMemUsageInBytes without native effects.
clone
default
Stvk::ShaderStageFlagBits
Contract
Open integer representation of VkShaderStageFlagBits.
Fields
0
0: u32Methods and associated items
VERTEX_BIT
Native value VK_SHADER_STAGE_VERTEX_BIT.
TESSELLATION_CONTROL_BIT
Native value VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT.
TESSELLATION_EVALUATION_BIT
Native value VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT.
Khronos reference: VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
GEOMETRY_BIT
Native value VK_SHADER_STAGE_GEOMETRY_BIT.
FRAGMENT_BIT
Native value VK_SHADER_STAGE_FRAGMENT_BIT.
COMPUTE_BIT
Native value VK_SHADER_STAGE_COMPUTE_BIT.
ALL_GRAPHICS
Native value VK_SHADER_STAGE_ALL_GRAPHICS.
ALL
Native value VK_SHADER_STAGE_ALL.
RAYGEN_BIT_KHR
Native value VK_SHADER_STAGE_RAYGEN_BIT_KHR.
ANY_HIT_BIT_KHR
Native value VK_SHADER_STAGE_ANY_HIT_BIT_KHR.
CLOSEST_HIT_BIT_KHR
Native value VK_SHADER_STAGE_CLOSEST_HIT_BIT_KHR.
MISS_BIT_KHR
Native value VK_SHADER_STAGE_MISS_BIT_KHR.
INTERSECTION_BIT_KHR
Native value VK_SHADER_STAGE_INTERSECTION_BIT_KHR.
CALLABLE_BIT_KHR
Native value VK_SHADER_STAGE_CALLABLE_BIT_KHR.
RAYGEN_BIT_NV
Native value VK_SHADER_STAGE_RAYGEN_BIT_NV.
ANY_HIT_BIT_NV
Native value VK_SHADER_STAGE_ANY_HIT_BIT_NV.
CLOSEST_HIT_BIT_NV
Native value VK_SHADER_STAGE_CLOSEST_HIT_BIT_NV.
MISS_BIT_NV
Native value VK_SHADER_STAGE_MISS_BIT_NV.
INTERSECTION_BIT_NV
Native value VK_SHADER_STAGE_INTERSECTION_BIT_NV.
CALLABLE_BIT_NV
Native value VK_SHADER_STAGE_CALLABLE_BIT_NV.
TASK_BIT_NV
Native value VK_SHADER_STAGE_TASK_BIT_NV.
MESH_BIT_NV
Native value VK_SHADER_STAGE_MESH_BIT_NV.
TASK_BIT_EXT
Native value VK_SHADER_STAGE_TASK_BIT_EXT.
MESH_BIT_EXT
Native value VK_SHADER_STAGE_MESH_BIT_EXT.
SUBPASS_SHADING_BIT_HUAWEI
Native value VK_SHADER_STAGE_SUBPASS_SHADING_BIT_HUAWEI.
Khronos reference: VK_SHADER_STAGE_SUBPASS_SHADING_BIT_HUAWEI
CLUSTER_CULLING_BIT_HUAWEI
Native value VK_SHADER_STAGE_CLUSTER_CULLING_BIT_HUAWEI.
Khronos reference: VK_SHADER_STAGE_CLUSTER_CULLING_BIT_HUAWEI
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::ShaderStatisticsInfoAMD
Contract
Native structure VkShaderStatisticsInfoAMD.
Fields
shader_stage_mask
shader_stage_mask: ShaderStageFlagsNative field shaderStageMask.
resource_usage
resource_usage: ShaderResourceUsageAMDNative field resourceUsage.
num_physical_vgprs
num_physical_vgprs: u32Native field numPhysicalVgprs.
num_physical_sgprs
num_physical_sgprs: u32Native field numPhysicalSgprs.
num_available_vgprs
num_available_vgprs: u32Native field numAvailableVgprs.
num_available_sgprs
num_available_sgprs: u32Native field numAvailableSgprs.
compute_work_group_size
compute_work_group_size: [u32; 3]Native field computeWorkGroupSize.
Methods and associated items
new
Construct the record with its default native state.
set_shader_stage_mask
Set native field shaderStageMask without native effects.
set_resource_usage
Set native field resourceUsage without native effects.
set_num_physical_vgprs
Set native field numPhysicalVgprs without native effects.
set_num_physical_sgprs
Set native field numPhysicalSgprs without native effects.
set_num_available_vgprs
Set native field numAvailableVgprs without native effects.
set_num_available_sgprs
Set native field numAvailableSgprs without native effects.
set_compute_work_group_size
Set native field computeWorkGroupSize without native effects.
clone
default
Stvk::ShadingRatePaletteEntryNV
Contract
Open integer representation of VkShadingRatePaletteEntryNV.
Fields
0
0: i32Methods and associated items
NO_INVOCATIONS_NV
Native value VK_SHADING_RATE_PALETTE_ENTRY_NO_INVOCATIONS_NV.
Khronos reference: VK_SHADING_RATE_PALETTE_ENTRY_NO_INVOCATIONS_NV
_16_INVOCATIONS_PER_PIXEL_NV
Native value VK_SHADING_RATE_PALETTE_ENTRY_16_INVOCATIONS_PER_PIXEL_NV.
Khronos reference: VK_SHADING_RATE_PALETTE_ENTRY_16_INVOCATIONS_PER_PIXEL_NV
_8_INVOCATIONS_PER_PIXEL_NV
Native value VK_SHADING_RATE_PALETTE_ENTRY_8_INVOCATIONS_PER_PIXEL_NV.
Khronos reference: VK_SHADING_RATE_PALETTE_ENTRY_8_INVOCATIONS_PER_PIXEL_NV
_4_INVOCATIONS_PER_PIXEL_NV
Native value VK_SHADING_RATE_PALETTE_ENTRY_4_INVOCATIONS_PER_PIXEL_NV.
Khronos reference: VK_SHADING_RATE_PALETTE_ENTRY_4_INVOCATIONS_PER_PIXEL_NV
_2_INVOCATIONS_PER_PIXEL_NV
Native value VK_SHADING_RATE_PALETTE_ENTRY_2_INVOCATIONS_PER_PIXEL_NV.
Khronos reference: VK_SHADING_RATE_PALETTE_ENTRY_2_INVOCATIONS_PER_PIXEL_NV
_1_INVOCATION_PER_PIXEL_NV
Native value VK_SHADING_RATE_PALETTE_ENTRY_1_INVOCATION_PER_PIXEL_NV.
Khronos reference: VK_SHADING_RATE_PALETTE_ENTRY_1_INVOCATION_PER_PIXEL_NV
_1_INVOCATION_PER_2X1_PIXELS_NV
Native value VK_SHADING_RATE_PALETTE_ENTRY_1_INVOCATION_PER_2X1_PIXELS_NV.
Khronos reference: VK_SHADING_RATE_PALETTE_ENTRY_1_INVOCATION_PER_2X1_PIXELS_NV
_1_INVOCATION_PER_1X2_PIXELS_NV
Native value VK_SHADING_RATE_PALETTE_ENTRY_1_INVOCATION_PER_1X2_PIXELS_NV.
Khronos reference: VK_SHADING_RATE_PALETTE_ENTRY_1_INVOCATION_PER_1X2_PIXELS_NV
_1_INVOCATION_PER_2X2_PIXELS_NV
Native value VK_SHADING_RATE_PALETTE_ENTRY_1_INVOCATION_PER_2X2_PIXELS_NV.
Khronos reference: VK_SHADING_RATE_PALETTE_ENTRY_1_INVOCATION_PER_2X2_PIXELS_NV
_1_INVOCATION_PER_4X2_PIXELS_NV
Native value VK_SHADING_RATE_PALETTE_ENTRY_1_INVOCATION_PER_4X2_PIXELS_NV.
Khronos reference: VK_SHADING_RATE_PALETTE_ENTRY_1_INVOCATION_PER_4X2_PIXELS_NV
_1_INVOCATION_PER_2X4_PIXELS_NV
Native value VK_SHADING_RATE_PALETTE_ENTRY_1_INVOCATION_PER_2X4_PIXELS_NV.
Khronos reference: VK_SHADING_RATE_PALETTE_ENTRY_1_INVOCATION_PER_2X4_PIXELS_NV
_1_INVOCATION_PER_4X4_PIXELS_NV
Native value VK_SHADING_RATE_PALETTE_ENTRY_1_INVOCATION_PER_4X4_PIXELS_NV.
Khronos reference: VK_SHADING_RATE_PALETTE_ENTRY_1_INVOCATION_PER_4X4_PIXELS_NV
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::ShadingRatePaletteNV
Contract
Native structure VkShadingRatePaletteNV.
Fields
shading_rate_palette_entry_count
shading_rate_palette_entry_count: u32Native field shadingRatePaletteEntryCount.
p_shading_rate_palette_entries
p_shading_rate_palette_entries: *const ShadingRatePaletteEntryNVNative field pShadingRatePaletteEntries.
Methods and associated items
new
Construct the record with its default native state.
set_shading_rate_palette_entry_count
Set native count shadingRatePaletteEntryCount 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_shading_rate_palette_entries
Borrow pShadingRatePaletteEntries and set checked native count shadingRatePaletteEntryCount.
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::SharedPresentSurfaceCapabilities2KHR
Contract
Native structure VkSharedPresentSurfaceCapabilities2KHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
shared_present_supported_usage_flags
shared_present_supported_usage_flags: ImageUsageFlags2KHRNative field sharedPresentSupportedUsageFlags.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_shared_present_supported_usage_flags
Set native field sharedPresentSupportedUsageFlags 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::SharedPresentSurfaceCapabilitiesKHR
Contract
Native structure VkSharedPresentSurfaceCapabilitiesKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
shared_present_supported_usage_flags
shared_present_supported_usage_flags: ImageUsageFlagsNative field sharedPresentSupportedUsageFlags.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_shared_present_supported_usage_flags
Set native field sharedPresentSupportedUsageFlags 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::SharingMode
Contract
Open integer representation of VkSharingMode.
Fields
0
0: i32Methods and associated items
EXCLUSIVE
Native value VK_SHARING_MODE_EXCLUSIVE.
CONCURRENT
Native value VK_SHARING_MODE_CONCURRENT.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::SparseBufferMemoryBindInfo
Contract
Native structure VkSparseBufferMemoryBindInfo.
Fields
buffer
buffer: BufferNative field buffer.
bind_count
bind_count: u32Native field bindCount.
p_binds
p_binds: *const SparseMemoryBindNative field pBinds.
Methods and associated items
new
Construct the record with its default native state.
set_buffer
Set native field buffer without native effects.
set_bind_count
Set native count bindCount 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_binds
Borrow pBinds and set checked native count bindCount.
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::SparseImageFormatFlagBits
Contract
Open integer representation of VkSparseImageFormatFlagBits.
Fields
0
0: u32Methods and associated items
SINGLE_MIPTAIL_BIT
Native value VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT.
Khronos reference: VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT
ALIGNED_MIP_SIZE_BIT
Native value VK_SPARSE_IMAGE_FORMAT_ALIGNED_MIP_SIZE_BIT.
Khronos reference: VK_SPARSE_IMAGE_FORMAT_ALIGNED_MIP_SIZE_BIT
NONSTANDARD_BLOCK_SIZE_BIT
Native value VK_SPARSE_IMAGE_FORMAT_NONSTANDARD_BLOCK_SIZE_BIT.
Khronos reference: VK_SPARSE_IMAGE_FORMAT_NONSTANDARD_BLOCK_SIZE_BIT
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::SparseImageFormatProperties
Contract
Native structure VkSparseImageFormatProperties.
Fields
aspect_mask
aspect_mask: ImageAspectFlagsNative field aspectMask.
image_granularity
image_granularity: Extent3DNative field imageGranularity.
flags
flags: SparseImageFormatFlagsNative field flags.
Methods and associated items
new
Construct the record with its default native state.
set_aspect_mask
Set native field aspectMask without native effects.
set_image_granularity
Set native field imageGranularity without native effects.
set_flags
Set native field flags without native effects.
clone
default
Stvk::SparseImageFormatProperties2
Contract
Native structure VkSparseImageFormatProperties2.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
properties
properties: SparseImageFormatPropertiesNative field properties.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_properties
Set native field properties 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::SparseImageMemoryBind
Contract
Native structure VkSparseImageMemoryBind.
Fields
subresource
subresource: ImageSubresourceNative field subresource.
offset
offset: Offset3DNative field offset.
extent
extent: Extent3DNative field extent.
memory
memory: DeviceMemoryNative field memory.
memory_offset
memory_offset: DeviceSizeNative field memoryOffset.
flags
flags: SparseMemoryBindFlagsNative field flags.
Methods and associated items
new
Construct the record with its default native state.
set_subresource
Set native field subresource without native effects.
set_offset
Set native field offset without native effects.
set_extent
Set native field extent without native effects.
set_memory
Set native field memory without native effects.
set_memory_offset
Set native field memoryOffset without native effects.
set_flags
Set native field flags without native effects.
clone
default
Stvk::SparseImageMemoryBindInfo
Contract
Native structure VkSparseImageMemoryBindInfo.
Fields
image
image: ImageNative field image.
bind_count
bind_count: u32Native field bindCount.
p_binds
p_binds: *const SparseImageMemoryBindNative field pBinds.
Methods and associated items
new
Construct the record with its default native state.
set_image
Set native field image without native effects.
set_bind_count
Set native count bindCount 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_binds
Borrow pBinds and set checked native count bindCount.
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::SparseImageMemoryRequirements
Contract
Native structure VkSparseImageMemoryRequirements.
Fields
format_properties
format_properties: SparseImageFormatPropertiesNative field formatProperties.
image_mip_tail_first_lod
image_mip_tail_first_lod: u32Native field imageMipTailFirstLod.
image_mip_tail_size
image_mip_tail_size: DeviceSizeNative field imageMipTailSize.
image_mip_tail_offset
image_mip_tail_offset: DeviceSizeNative field imageMipTailOffset.
image_mip_tail_stride
image_mip_tail_stride: DeviceSizeNative field imageMipTailStride.
Methods and associated items
new
Construct the record with its default native state.
set_format_properties
Set native field formatProperties without native effects.
set_image_mip_tail_first_lod
Set native field imageMipTailFirstLod without native effects.
set_image_mip_tail_size
Set native field imageMipTailSize without native effects.
set_image_mip_tail_offset
Set native field imageMipTailOffset without native effects.
set_image_mip_tail_stride
Set native field imageMipTailStride without native effects.