vk · Structs · D7
16 public declarations with native signatures and source-owned contracts.
Stvk::DescriptorPoolSize
Contract
Native structure VkDescriptorPoolSize.
Fields
type
type: DescriptorTypeNative field type.
descriptor_count
descriptor_count: u32Native field descriptorCount.
Methods and associated items
new
Construct the record with its default native state.
set_type
Set native field type without native effects.
set_descriptor_count
Set native field descriptorCount without native effects.
clone
default
Stvk::DescriptorSet
Contract
Raw Vulkan handle VkDescriptorSet.
Khronos reference: VkDescriptorSet
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::DescriptorSetAllocateInfo
Contract
Native structure VkDescriptorSetAllocateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
descriptor_pool
descriptor_pool: DescriptorPoolNative field descriptorPool.
descriptor_set_count
descriptor_set_count: u32Native field descriptorSetCount.
p_set_layouts
p_set_layouts: *const DescriptorSetLayoutNative field pSetLayouts.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_descriptor_pool
Set native field descriptorPool without native effects.
set_descriptor_set_count
Set native count descriptorSetCount 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_set_layouts
Borrow pSetLayouts and set checked native count descriptorSetCount.
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::DescriptorSetAndBindingMappingEXT
pub struct DescriptorSetAndBindingMappingEXT<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub descriptor_set: u32,
pub first_binding: u32,
pub binding_count: u32,
pub resource_mask: SpirvResourceTypeFlagsEXT,
pub source: DescriptorMappingSourceEXT,
pub source_data: DescriptorMappingSourceDataEXT<'a>,
/* private fields */
}Contract
Native structure VkDescriptorSetAndBindingMappingEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
descriptor_set
descriptor_set: u32Native field descriptorSet.
first_binding
first_binding: u32Native field firstBinding.
binding_count
binding_count: u32Native field bindingCount.
resource_mask
resource_mask: SpirvResourceTypeFlagsEXTNative field resourceMask.
source
source: DescriptorMappingSourceEXTNative field source.
source_data
source_data: DescriptorMappingSourceDataEXT<'a>Native field sourceData.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_descriptor_set
Set native field descriptorSet without native effects.
set_first_binding
Set native field firstBinding without native effects.
set_binding_count
Set native field bindingCount without native effects.
set_resource_mask
Set native field resourceMask without native effects.
set_source
Set native field source without native effects.
set_source_data
Set native field sourceData 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::DescriptorSetBindingReferenceVALVE
Contract
Native structure VkDescriptorSetBindingReferenceVALVE.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
descriptor_set_layout
descriptor_set_layout: DescriptorSetLayoutNative field descriptorSetLayout.
binding
binding: u32Native field binding.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_descriptor_set_layout
Set native field descriptorSetLayout without native effects.
set_binding
Set native field binding 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::DescriptorSetLayout
Contract
Raw Vulkan handle VkDescriptorSetLayout.
Khronos reference: VkDescriptorSetLayout
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::DescriptorSetLayoutBinding
Contract
Native structure VkDescriptorSetLayoutBinding.
Fields
binding
binding: u32Native field binding.
descriptor_type
descriptor_type: DescriptorTypeNative field descriptorType.
descriptor_count
descriptor_count: u32Native field descriptorCount.
stage_flags
stage_flags: ShaderStageFlagsNative field stageFlags.
p_immutable_samplers
p_immutable_samplers: *const SamplerNative field pImmutableSamplers.
Methods and associated items
new
Construct the record with its default native state.
set_binding
Set native field binding without native effects.
set_descriptor_type
Set native field descriptorType without native effects.
set_descriptor_count
Set native count descriptorCount 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_stage_flags
Set native field stageFlags without native effects.
set_immutable_samplers
Borrow pImmutableSamplers and set checked native count descriptorCount.
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::DescriptorSetLayoutBindingFlagsCreateInfo
Contract
Native structure VkDescriptorSetLayoutBindingFlagsCreateInfo.
Khronos reference: VkDescriptorSetLayoutBindingFlagsCreateInfo
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
binding_count
binding_count: u32Native field bindingCount.
p_binding_flags
p_binding_flags: *const DescriptorBindingFlagsNative field pBindingFlags.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_binding_count
Set native count bindingCount 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_binding_flags
Borrow pBindingFlags and set checked native count bindingCount.
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::DescriptorSetLayoutCreateFlagBits
Contract
Open integer representation of VkDescriptorSetLayoutCreateFlagBits.
Fields
0
0: u32Methods and associated items
UPDATE_AFTER_BIND_POOL_BIT
Native value VK_DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT.
Khronos reference: VK_DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT
PUSH_DESCRIPTOR_BIT
Native value VK_DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT.
Khronos reference: VK_DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT
PUSH_DESCRIPTOR_BIT_KHR
Native value VK_DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR.
Khronos reference: VK_DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR
UPDATE_AFTER_BIND_POOL_BIT_EXT
Native value VK_DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT_EXT.
Khronos reference: VK_DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT_EXT
DESCRIPTOR_BUFFER_BIT_EXT
Native value VK_DESCRIPTOR_SET_LAYOUT_CREATE_DESCRIPTOR_BUFFER_BIT_EXT.
Khronos reference: VK_DESCRIPTOR_SET_LAYOUT_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
EMBEDDED_IMMUTABLE_SAMPLERS_BIT_EXT
Native value VK_DESCRIPTOR_SET_LAYOUT_CREATE_EMBEDDED_IMMUTABLE_SAMPLERS_BIT_EXT.
Khronos reference: VK_DESCRIPTOR_SET_LAYOUT_CREATE_EMBEDDED_IMMUTABLE_SAMPLERS_BIT_EXT
HOST_ONLY_POOL_BIT_VALVE
Native value VK_DESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_VALVE.
Khronos reference: VK_DESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_VALVE
INDIRECT_BINDABLE_BIT_NV
Native value VK_DESCRIPTOR_SET_LAYOUT_CREATE_INDIRECT_BINDABLE_BIT_NV.
Khronos reference: VK_DESCRIPTOR_SET_LAYOUT_CREATE_INDIRECT_BINDABLE_BIT_NV
HOST_ONLY_POOL_BIT_EXT
Native value VK_DESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_EXT.
Khronos reference: VK_DESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_EXT
PER_STAGE_BIT_NV
Native value VK_DESCRIPTOR_SET_LAYOUT_CREATE_PER_STAGE_BIT_NV.
Khronos reference: VK_DESCRIPTOR_SET_LAYOUT_CREATE_PER_STAGE_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::DescriptorSetLayoutCreateInfo
Contract
Native structure VkDescriptorSetLayoutCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: DescriptorSetLayoutCreateFlagsNative field flags.
binding_count
binding_count: u32Native field bindingCount.
p_bindings
p_bindings: *const DescriptorSetLayoutBinding<'a>Native field pBindings.
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_binding_count
Set native count bindingCount 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_bindings
Borrow pBindings and set checked native count bindingCount.
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::DescriptorSetLayoutHostMappingInfoVALVE
Contract
Native structure VkDescriptorSetLayoutHostMappingInfoVALVE.
Khronos reference: VkDescriptorSetLayoutHostMappingInfoVALVE
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
descriptor_offset
descriptor_offset: usizeNative field descriptorOffset.
descriptor_size
descriptor_size: u32Native field descriptorSize.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_descriptor_offset
Set native field descriptorOffset without native effects.
set_descriptor_size
Set native field descriptorSize 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::DescriptorSetLayoutSupport
Contract
Native structure VkDescriptorSetLayoutSupport.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
supported
supported: Bool32Native field supported.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_supported
Set native field supported 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::DescriptorSetVariableDescriptorCountAllocateInfo
Contract
Native structure VkDescriptorSetVariableDescriptorCountAllocateInfo.
Khronos reference: VkDescriptorSetVariableDescriptorCountAllocateInfo
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
descriptor_set_count
descriptor_set_count: u32Native field descriptorSetCount.
p_descriptor_counts
p_descriptor_counts: *const u32Native field pDescriptorCounts.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_descriptor_set_count
Set native count descriptorSetCount 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_counts
Borrow pDescriptorCounts and set checked native count descriptorSetCount.
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::DescriptorSetVariableDescriptorCountLayoutSupport
Contract
Native structure VkDescriptorSetVariableDescriptorCountLayoutSupport.
Khronos reference: VkDescriptorSetVariableDescriptorCountLayoutSupport
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
max_variable_descriptor_count
max_variable_descriptor_count: u32Native field maxVariableDescriptorCount.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_max_variable_descriptor_count
Set native field maxVariableDescriptorCount 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::DescriptorType
Contract
Open integer representation of VkDescriptorType.
Fields
0
0: i32Methods and associated items
SAMPLER
Native value VK_DESCRIPTOR_TYPE_SAMPLER.
COMBINED_IMAGE_SAMPLER
Native value VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER.
Khronos reference: VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER
SAMPLED_IMAGE
Native value VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE.
STORAGE_IMAGE
Native value VK_DESCRIPTOR_TYPE_STORAGE_IMAGE.
UNIFORM_TEXEL_BUFFER
Native value VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER.
STORAGE_TEXEL_BUFFER
Native value VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER.
UNIFORM_BUFFER
Native value VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER.
STORAGE_BUFFER
Native value VK_DESCRIPTOR_TYPE_STORAGE_BUFFER.
UNIFORM_BUFFER_DYNAMIC
Native value VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC.
Khronos reference: VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC
STORAGE_BUFFER_DYNAMIC
Native value VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC.
Khronos reference: VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC
INPUT_ATTACHMENT
Native value VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT.
INLINE_UNIFORM_BLOCK
Native value VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK.
INLINE_UNIFORM_BLOCK_EXT
Native value VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT.
Khronos reference: VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT
ACCELERATION_STRUCTURE_KHR
Native value VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR.
Khronos reference: VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR
ACCELERATION_STRUCTURE_NV
Native value VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NV.
Khronos reference: VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NV
MUTABLE_VALVE
Native value VK_DESCRIPTOR_TYPE_MUTABLE_VALVE.
SAMPLE_WEIGHT_IMAGE_QCOM
Native value VK_DESCRIPTOR_TYPE_SAMPLE_WEIGHT_IMAGE_QCOM.
Khronos reference: VK_DESCRIPTOR_TYPE_SAMPLE_WEIGHT_IMAGE_QCOM
BLOCK_MATCH_IMAGE_QCOM
Native value VK_DESCRIPTOR_TYPE_BLOCK_MATCH_IMAGE_QCOM.
Khronos reference: VK_DESCRIPTOR_TYPE_BLOCK_MATCH_IMAGE_QCOM
TENSOR_ARM
Native value VK_DESCRIPTOR_TYPE_TENSOR_ARM.
MUTABLE_EXT
Native value VK_DESCRIPTOR_TYPE_MUTABLE_EXT.
PARTITIONED_ACCELERATION_STRUCTURE_NV
Native value VK_DESCRIPTOR_TYPE_PARTITIONED_ACCELERATION_STRUCTURE_NV.
Khronos reference: VK_DESCRIPTOR_TYPE_PARTITIONED_ACCELERATION_STRUCTURE_NV
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::DescriptorUpdateTemplate
Contract
Raw Vulkan handle VkDescriptorUpdateTemplate.
Khronos reference: VkDescriptorUpdateTemplate
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 ==.