vk · Structs · B2
16 public declarations with native signatures and source-owned contracts.
Stvk::BindIndexBufferIndirectCommandNV
Contract
Native structure VkBindIndexBufferIndirectCommandNV.
Fields
buffer_address
buffer_address: DeviceAddressNative field bufferAddress.
size
size: u32Native field size.
index_type
index_type: IndexTypeNative field indexType.
Methods and associated items
new
Construct the record with its default native state.
set_buffer_address
Set native field bufferAddress without native effects.
set_size
Set native field size without native effects.
set_index_type
Set native field indexType without native effects.
clone
default
Stvk::BindMemoryStatus
Contract
Native structure VkBindMemoryStatus.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
p_result
p_result: *mut ResultNative field pResult.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_result
Set native field pResult 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::BindPipelineIndirectCommandNV
Contract
Native structure VkBindPipelineIndirectCommandNV.
Fields
pipeline_address
pipeline_address: DeviceAddressNative field pipelineAddress.
Methods and associated items
new
Construct the record with its default native state.
set_pipeline_address
Set native field pipelineAddress without native effects.
clone
default
Stvk::BindShaderGroupIndirectCommandNV
Contract
Native structure VkBindShaderGroupIndirectCommandNV.
Fields
group_index
group_index: u32Native field groupIndex.
Methods and associated items
new
Construct the record with its default native state.
set_group_index
Set native field groupIndex without native effects.
clone
default
Stvk::BindSparseInfo
pub struct BindSparseInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub wait_semaphore_count: u32,
pub p_wait_semaphores: *const Semaphore,
pub buffer_bind_count: u32,
pub p_buffer_binds: *const SparseBufferMemoryBindInfo<'a>,
pub image_opaque_bind_count: u32,
pub p_image_opaque_binds: *const SparseImageOpaqueMemoryBindInfo<'a>,
pub image_bind_count: u32,
pub p_image_binds: *const SparseImageMemoryBindInfo<'a>,
pub signal_semaphore_count: u32,
pub p_signal_semaphores: *const Semaphore,
/* private fields */
}Contract
Native structure VkBindSparseInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
wait_semaphore_count
wait_semaphore_count: u32Native field waitSemaphoreCount.
p_wait_semaphores
p_wait_semaphores: *const SemaphoreNative field pWaitSemaphores.
buffer_bind_count
buffer_bind_count: u32Native field bufferBindCount.
p_buffer_binds
p_buffer_binds: *const SparseBufferMemoryBindInfo<'a>Native field pBufferBinds.
image_opaque_bind_count
image_opaque_bind_count: u32Native field imageOpaqueBindCount.
p_image_opaque_binds
p_image_opaque_binds: *const SparseImageOpaqueMemoryBindInfo<'a>Native field pImageOpaqueBinds.
image_bind_count
image_bind_count: u32Native field imageBindCount.
p_image_binds
p_image_binds: *const SparseImageMemoryBindInfo<'a>Native field pImageBinds.
signal_semaphore_count
signal_semaphore_count: u32Native field signalSemaphoreCount.
p_signal_semaphores
p_signal_semaphores: *const SemaphoreNative field pSignalSemaphores.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_wait_semaphore_count
Set native count waitSemaphoreCount 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_wait_semaphores
Borrow pWaitSemaphores and set checked native count waitSemaphoreCount.
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_buffer_bind_count
Set native count bufferBindCount 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_buffer_binds
Borrow pBufferBinds and set checked native count bufferBindCount.
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_image_opaque_bind_count
Set native count imageOpaqueBindCount 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_image_opaque_binds
Borrow pImageOpaqueBinds and set checked native count imageOpaqueBindCount.
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_image_bind_count
Set native count imageBindCount 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_image_binds
Borrow pImageBinds and set checked native count imageBindCount.
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_signal_semaphore_count
Set native count signalSemaphoreCount 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_signal_semaphores
Borrow pSignalSemaphores and set checked native count signalSemaphoreCount.
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::BindTensorMemoryInfoARM
Contract
Native structure VkBindTensorMemoryInfoARM.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
tensor
tensor: TensorARMNative field tensor.
memory
memory: DeviceMemoryNative field memory.
memory_offset
memory_offset: DeviceSizeNative field memoryOffset.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_tensor
Set native field tensor without native effects.
set_memory
Set native field memory without native effects.
set_memory_offset
Set native field memoryOffset 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::BindTransformFeedbackBuffer2InfoEXT
Contract
Native structure VkBindTransformFeedbackBuffer2InfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
address_range
address_range: DeviceAddressRangeKHRNative field addressRange.
address_flags
address_flags: AddressCommandFlagsKHRNative field addressFlags.
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.
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::BindVertexBuffer3InfoKHR
Contract
Native structure VkBindVertexBuffer3InfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
set_stride
set_stride: Bool32Native field setStride.
address_range
address_range: StridedDeviceAddressRangeKHRNative field addressRange.
address_flags
address_flags: AddressCommandFlagsKHRNative field addressFlags.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_set_stride
Set native field setStride without native effects.
set_address_range
Set native field addressRange without native effects.
set_address_flags
Set native field addressFlags 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::BindVertexBufferIndirectCommandEXT
Contract
Native structure VkBindVertexBufferIndirectCommandEXT.
Fields
buffer_address
buffer_address: DeviceAddressNative field bufferAddress.
size
size: u32Native field size.
stride
stride: u32Native field stride.
Methods and associated items
new
Construct the record with its default native state.
set_buffer_address
Set native field bufferAddress without native effects.
set_size
Set native field size without native effects.
set_stride
Set native field stride without native effects.
clone
default
Stvk::BindVertexBufferIndirectCommandNV
Contract
Native structure VkBindVertexBufferIndirectCommandNV.
Fields
buffer_address
buffer_address: DeviceAddressNative field bufferAddress.
size
size: u32Native field size.
stride
stride: u32Native field stride.
Methods and associated items
new
Construct the record with its default native state.
set_buffer_address
Set native field bufferAddress without native effects.
set_size
Set native field size without native effects.
set_stride
Set native field stride without native effects.
clone
default
Stvk::BindVideoSessionMemoryInfoKHR
Contract
Native structure VkBindVideoSessionMemoryInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
memory_bind_index
memory_bind_index: u32Native field memoryBindIndex.
memory
memory: DeviceMemoryNative field memory.
memory_offset
memory_offset: DeviceSizeNative field memoryOffset.
memory_size
memory_size: DeviceSizeNative field memorySize.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_memory_bind_index
Set native field memoryBindIndex without native effects.
set_memory
Set native field memory without native effects.
set_memory_offset
Set native field memoryOffset without native effects.
set_memory_size
Set native field memorySize 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::BlendFactor
Contract
Open integer representation of VkBlendFactor.
Fields
0
0: i32Methods and associated items
ZERO
Native value VK_BLEND_FACTOR_ZERO.
ONE
Native value VK_BLEND_FACTOR_ONE.
SRC_COLOR
Native value VK_BLEND_FACTOR_SRC_COLOR.
ONE_MINUS_SRC_COLOR
Native value VK_BLEND_FACTOR_ONE_MINUS_SRC_COLOR.
DST_COLOR
Native value VK_BLEND_FACTOR_DST_COLOR.
ONE_MINUS_DST_COLOR
Native value VK_BLEND_FACTOR_ONE_MINUS_DST_COLOR.
SRC_ALPHA
Native value VK_BLEND_FACTOR_SRC_ALPHA.
ONE_MINUS_SRC_ALPHA
Native value VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA.
DST_ALPHA
Native value VK_BLEND_FACTOR_DST_ALPHA.
ONE_MINUS_DST_ALPHA
Native value VK_BLEND_FACTOR_ONE_MINUS_DST_ALPHA.
CONSTANT_COLOR
Native value VK_BLEND_FACTOR_CONSTANT_COLOR.
ONE_MINUS_CONSTANT_COLOR
Native value VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR.
CONSTANT_ALPHA
Native value VK_BLEND_FACTOR_CONSTANT_ALPHA.
ONE_MINUS_CONSTANT_ALPHA
Native value VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA.
SRC_ALPHA_SATURATE
Native value VK_BLEND_FACTOR_SRC_ALPHA_SATURATE.
SRC1_COLOR
Native value VK_BLEND_FACTOR_SRC1_COLOR.
ONE_MINUS_SRC1_COLOR
Native value VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR.
SRC1_ALPHA
Native value VK_BLEND_FACTOR_SRC1_ALPHA.
ONE_MINUS_SRC1_ALPHA
Native value VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::BlendOp
Contract
Open integer representation of VkBlendOp.
Fields
0
0: i32Methods and associated items
ADD
Native value VK_BLEND_OP_ADD.
SUBTRACT
Native value VK_BLEND_OP_SUBTRACT.
REVERSE_SUBTRACT
Native value VK_BLEND_OP_REVERSE_SUBTRACT.
MIN
Native value VK_BLEND_OP_MIN.
MAX
Native value VK_BLEND_OP_MAX.
ZERO_EXT
Native value VK_BLEND_OP_ZERO_EXT.
SRC_EXT
Native value VK_BLEND_OP_SRC_EXT.
DST_EXT
Native value VK_BLEND_OP_DST_EXT.
SRC_OVER_EXT
Native value VK_BLEND_OP_SRC_OVER_EXT.
DST_OVER_EXT
Native value VK_BLEND_OP_DST_OVER_EXT.
SRC_IN_EXT
Native value VK_BLEND_OP_SRC_IN_EXT.
DST_IN_EXT
Native value VK_BLEND_OP_DST_IN_EXT.
SRC_OUT_EXT
Native value VK_BLEND_OP_SRC_OUT_EXT.
DST_OUT_EXT
Native value VK_BLEND_OP_DST_OUT_EXT.
SRC_ATOP_EXT
Native value VK_BLEND_OP_SRC_ATOP_EXT.
DST_ATOP_EXT
Native value VK_BLEND_OP_DST_ATOP_EXT.
XOR_EXT
Native value VK_BLEND_OP_XOR_EXT.
MULTIPLY_EXT
Native value VK_BLEND_OP_MULTIPLY_EXT.
SCREEN_EXT
Native value VK_BLEND_OP_SCREEN_EXT.
OVERLAY_EXT
Native value VK_BLEND_OP_OVERLAY_EXT.
DARKEN_EXT
Native value VK_BLEND_OP_DARKEN_EXT.
LIGHTEN_EXT
Native value VK_BLEND_OP_LIGHTEN_EXT.
COLORDODGE_EXT
Native value VK_BLEND_OP_COLORDODGE_EXT.
COLORBURN_EXT
Native value VK_BLEND_OP_COLORBURN_EXT.
HARDLIGHT_EXT
Native value VK_BLEND_OP_HARDLIGHT_EXT.
SOFTLIGHT_EXT
Native value VK_BLEND_OP_SOFTLIGHT_EXT.
DIFFERENCE_EXT
Native value VK_BLEND_OP_DIFFERENCE_EXT.
EXCLUSION_EXT
Native value VK_BLEND_OP_EXCLUSION_EXT.
INVERT_EXT
Native value VK_BLEND_OP_INVERT_EXT.
INVERT_RGB_EXT
Native value VK_BLEND_OP_INVERT_RGB_EXT.
LINEARDODGE_EXT
Native value VK_BLEND_OP_LINEARDODGE_EXT.
LINEARBURN_EXT
Native value VK_BLEND_OP_LINEARBURN_EXT.
VIVIDLIGHT_EXT
Native value VK_BLEND_OP_VIVIDLIGHT_EXT.
LINEARLIGHT_EXT
Native value VK_BLEND_OP_LINEARLIGHT_EXT.
PINLIGHT_EXT
Native value VK_BLEND_OP_PINLIGHT_EXT.
HARDMIX_EXT
Native value VK_BLEND_OP_HARDMIX_EXT.
HSL_HUE_EXT
Native value VK_BLEND_OP_HSL_HUE_EXT.
HSL_SATURATION_EXT
Native value VK_BLEND_OP_HSL_SATURATION_EXT.
HSL_COLOR_EXT
Native value VK_BLEND_OP_HSL_COLOR_EXT.
HSL_LUMINOSITY_EXT
Native value VK_BLEND_OP_HSL_LUMINOSITY_EXT.
PLUS_EXT
Native value VK_BLEND_OP_PLUS_EXT.
PLUS_CLAMPED_EXT
Native value VK_BLEND_OP_PLUS_CLAMPED_EXT.
PLUS_CLAMPED_ALPHA_EXT
Native value VK_BLEND_OP_PLUS_CLAMPED_ALPHA_EXT.
PLUS_DARKER_EXT
Native value VK_BLEND_OP_PLUS_DARKER_EXT.
MINUS_EXT
Native value VK_BLEND_OP_MINUS_EXT.
MINUS_CLAMPED_EXT
Native value VK_BLEND_OP_MINUS_CLAMPED_EXT.
CONTRAST_EXT
Native value VK_BLEND_OP_CONTRAST_EXT.
INVERT_OVG_EXT
Native value VK_BLEND_OP_INVERT_OVG_EXT.
RED_EXT
Native value VK_BLEND_OP_RED_EXT.
GREEN_EXT
Native value VK_BLEND_OP_GREEN_EXT.
BLUE_EXT
Native value VK_BLEND_OP_BLUE_EXT.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::BlendOverlapEXT
Contract
Open integer representation of VkBlendOverlapEXT.
Fields
0
0: i32Methods and associated items
UNCORRELATED_EXT
Native value VK_BLEND_OVERLAP_UNCORRELATED_EXT.
DISJOINT_EXT
Native value VK_BLEND_OVERLAP_DISJOINT_EXT.
CONJOINT_EXT
Native value VK_BLEND_OVERLAP_CONJOINT_EXT.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::BlitImageCubicWeightsInfoQCOM
Contract
Native structure VkBlitImageCubicWeightsInfoQCOM.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
cubic_weights
cubic_weights: CubicFilterWeightsQCOMNative field cubicWeights.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_cubic_weights
Set native field cubicWeights 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::BlitImageInfo2
pub struct BlitImageInfo2<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub src_image: Image,
pub src_image_layout: ImageLayout,
pub dst_image: Image,
pub dst_image_layout: ImageLayout,
pub region_count: u32,
pub p_regions: *const ImageBlit2<'a>,
pub filter: Filter,
/* private fields */
}Contract
Native structure VkBlitImageInfo2.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
src_image
src_image: ImageNative field srcImage.
src_image_layout
src_image_layout: ImageLayoutNative field srcImageLayout.
dst_image
dst_image: ImageNative field dstImage.
dst_image_layout
dst_image_layout: ImageLayoutNative field dstImageLayout.
region_count
region_count: u32Native field regionCount.
p_regions
p_regions: *const ImageBlit2<'a>Native field pRegions.
filter
filter: FilterNative field filter.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_src_image
Set native field srcImage without native effects.
set_src_image_layout
Set native field srcImageLayout without native effects.
set_dst_image
Set native field dstImage without native effects.
set_dst_image_layout
Set native field dstImageLayout without native effects.
set_region_count
Set native count regionCount 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_regions
Borrow pRegions and set checked native count regionCount.
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_filter
Set native field filter 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.