vk · Structs · W1
16 public declarations with native signatures and source-owned contracts.
Stvk::WaylandSurfaceCreateFlagsKHR
Contract
Open integer representation of VkWaylandSurfaceCreateFlagsKHR.
Fields
0
0: u32Methods and associated items
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::WaylandSurfaceCreateInfoKHR
Contract
Native structure VkWaylandSurfaceCreateInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: WaylandSurfaceCreateFlagsKHRNative field flags.
display
display: *mut wl_displayNative field display.
surface
surface: *mut wl_surfaceNative field surface.
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_display
Set native pointer display 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.
set_surface
Set native pointer surface 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.
default
Stvk::Win32KeyedMutexAcquireReleaseInfoKHR
pub struct Win32KeyedMutexAcquireReleaseInfoKHR<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub acquire_count: u32,
pub p_acquire_syncs: *const DeviceMemory,
pub p_acquire_keys: *const u64,
pub p_acquire_timeouts: *const u32,
pub release_count: u32,
pub p_release_syncs: *const DeviceMemory,
pub p_release_keys: *const u64,
/* private fields */
}Contract
Native structure VkWin32KeyedMutexAcquireReleaseInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
acquire_count
acquire_count: u32Native field acquireCount.
p_acquire_syncs
p_acquire_syncs: *const DeviceMemoryNative field pAcquireSyncs.
p_acquire_keys
p_acquire_keys: *const u64Native field pAcquireKeys.
p_acquire_timeouts
p_acquire_timeouts: *const u32Native field pAcquireTimeouts.
release_count
release_count: u32Native field releaseCount.
p_release_syncs
p_release_syncs: *const DeviceMemoryNative field pReleaseSyncs.
p_release_keys
p_release_keys: *const u64Native field pReleaseKeys.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_acquire_count
Set native count acquireCount 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_acquire_syncs
Borrow parallel arrays sharing native acquireCount. Optional arrays may be null.
Mutable arrays retain exclusive borrows of initialized output storage.
This checks lengths only; native valid usage and later raw edits remain caller obligations.
Errors
Returns a construction error for unequal lengths or native count overflow.
set_release_count
Set native count releaseCount 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_release_syncs
Borrow parallel arrays sharing native releaseCount. Optional arrays may be null.
Mutable arrays retain exclusive borrows of initialized output storage.
This checks lengths only; native valid usage and later raw edits remain caller obligations.
Errors
Returns a construction error for unequal lengths or native count overflow.
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::Win32KeyedMutexAcquireReleaseInfoNV
pub struct Win32KeyedMutexAcquireReleaseInfoNV<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub acquire_count: u32,
pub p_acquire_syncs: *const DeviceMemory,
pub p_acquire_keys: *const u64,
pub p_acquire_timeout_milliseconds: *const u32,
pub release_count: u32,
pub p_release_syncs: *const DeviceMemory,
pub p_release_keys: *const u64,
/* private fields */
}Contract
Native structure VkWin32KeyedMutexAcquireReleaseInfoNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
acquire_count
acquire_count: u32Native field acquireCount.
p_acquire_syncs
p_acquire_syncs: *const DeviceMemoryNative field pAcquireSyncs.
p_acquire_keys
p_acquire_keys: *const u64Native field pAcquireKeys.
p_acquire_timeout_milliseconds
p_acquire_timeout_milliseconds: *const u32Native field pAcquireTimeoutMilliseconds.
release_count
release_count: u32Native field releaseCount.
p_release_syncs
p_release_syncs: *const DeviceMemoryNative field pReleaseSyncs.
p_release_keys
p_release_keys: *const u64Native field pReleaseKeys.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_acquire_count
Set native count acquireCount 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_acquire_syncs
Borrow parallel arrays sharing native acquireCount. Optional arrays may be null.
Mutable arrays retain exclusive borrows of initialized output storage.
This checks lengths only; native valid usage and later raw edits remain caller obligations.
Errors
Returns a construction error for unequal lengths or native count overflow.
set_release_count
Set native count releaseCount 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_release_syncs
Borrow parallel arrays sharing native releaseCount. Optional arrays may be null.
Mutable arrays retain exclusive borrows of initialized output storage.
This checks lengths only; native valid usage and later raw edits remain caller obligations.
Errors
Returns a construction error for unequal lengths or native count overflow.
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::Win32SurfaceCreateFlagsKHR
Contract
Open integer representation of VkWin32SurfaceCreateFlagsKHR.
Fields
0
0: u32Methods and associated items
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::Win32SurfaceCreateInfoKHR
Contract
Native structure VkWin32SurfaceCreateInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: Win32SurfaceCreateFlagsKHRNative field flags.
hinstance
hinstance: HINSTANCENative field hinstance.
hwnd
hwnd: HWNDNative field hwnd.
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_hinstance
Set native field hinstance without native effects.
set_hwnd
Set native field hwnd 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::wl_display
Contract
Native type wl_display.
Stvk::wl_surface
Contract
Native type wl_surface.
Stvk::WriteDescriptorSet
pub struct WriteDescriptorSet<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub dst_set: DescriptorSet,
pub dst_binding: u32,
pub dst_array_element: u32,
pub descriptor_count: u32,
pub descriptor_type: DescriptorType,
pub p_image_info: *const DescriptorImageInfo,
pub p_buffer_info: *const DescriptorBufferInfo,
pub p_texel_buffer_view: *const BufferView,
/* private fields */
}Contract
Native structure VkWriteDescriptorSet.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
dst_set
dst_set: DescriptorSetNative field dstSet.
dst_binding
dst_binding: u32Native field dstBinding.
dst_array_element
dst_array_element: u32Native field dstArrayElement.
descriptor_count
descriptor_count: u32Native field descriptorCount.
descriptor_type
descriptor_type: DescriptorTypeNative field descriptorType.
p_image_info
p_image_info: *const DescriptorImageInfoNative field pImageInfo.
p_buffer_info
p_buffer_info: *const DescriptorBufferInfoNative field pBufferInfo.
p_texel_buffer_view
p_texel_buffer_view: *const BufferViewNative field pTexelBufferView.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_dst_set
Set native field dstSet without native effects.
set_dst_binding
Set native field dstBinding without native effects.
set_dst_array_element
Set native field dstArrayElement 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_descriptor_type
Set native field descriptorType without native effects.
set_image_info
Borrow pImageInfo 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.
set_buffer_info
Borrow pBufferInfo 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.
set_texel_buffer_view
Borrow pTexelBufferView 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.
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::WriteDescriptorSetAccelerationStructureKHR
Contract
Native structure VkWriteDescriptorSetAccelerationStructureKHR.
Khronos reference: VkWriteDescriptorSetAccelerationStructureKHR
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
acceleration_structure_count
acceleration_structure_count: u32Native field accelerationStructureCount.
p_acceleration_structures
p_acceleration_structures: *const AccelerationStructureKHRNative field pAccelerationStructures.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_acceleration_structure_count
Set native count accelerationStructureCount 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_acceleration_structures
Borrow pAccelerationStructures and set checked native count accelerationStructureCount.
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::WriteDescriptorSetAccelerationStructureNV
Contract
Native structure VkWriteDescriptorSetAccelerationStructureNV.
Khronos reference: VkWriteDescriptorSetAccelerationStructureNV
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
acceleration_structure_count
acceleration_structure_count: u32Native field accelerationStructureCount.
p_acceleration_structures
p_acceleration_structures: *const AccelerationStructureNVNative field pAccelerationStructures.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_acceleration_structure_count
Set native count accelerationStructureCount 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_acceleration_structures
Borrow pAccelerationStructures and set checked native count accelerationStructureCount.
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::WriteDescriptorSetInlineUniformBlock
Contract
Native structure VkWriteDescriptorSetInlineUniformBlock.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
data_size
data_size: u32Native field dataSize.
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_data_size
Set native count dataSize 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_data
Borrow pData and set checked native byte size dataSize.
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::WriteDescriptorSetPartitionedAccelerationStructureNV
Contract
Native structure VkWriteDescriptorSetPartitionedAccelerationStructureNV.
Khronos reference: VkWriteDescriptorSetPartitionedAccelerationStructureNV
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
acceleration_structure_count
acceleration_structure_count: u32Native field accelerationStructureCount.
p_acceleration_structures
p_acceleration_structures: *const DeviceAddressNative field pAccelerationStructures.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_acceleration_structure_count
Set native count accelerationStructureCount 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_acceleration_structures
Borrow pAccelerationStructures and set checked native count accelerationStructureCount.
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::WriteDescriptorSetTensorARM
Contract
Native structure VkWriteDescriptorSetTensorARM.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
tensor_view_count
tensor_view_count: u32Native field tensorViewCount.
p_tensor_views
p_tensor_views: *const TensorViewARMNative field pTensorViews.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_tensor_view_count
Set native count tensorViewCount 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_tensor_views
Borrow pTensorViews and set checked native count tensorViewCount.
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::WriteIndirectExecutionSetPipelineEXT
Contract
Native structure VkWriteIndirectExecutionSetPipelineEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
index
index: u32Native field index.
pipeline
pipeline: PipelineNative field pipeline.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_index
Set native field index without native effects.
set_pipeline
Set native field pipeline 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::WriteIndirectExecutionSetShaderEXT
Contract
Native structure VkWriteIndirectExecutionSetShaderEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
index
index: u32Native field index.
shader
shader: ShaderEXTNative field shader.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_index
Set native field index without native effects.
set_shader
Set native field shader 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.