vk · Structs · I6
16 public declarations with native signatures and source-owned contracts.
Stvk::ImportMetalTextureInfoEXT
Contract
Native structure VkImportMetalTextureInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
plane
plane: ImageAspectFlagBitsNative field plane.
mtl_texture
mtl_texture: MTLTexture_idNative field mtlTexture.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_plane
Set native field plane without native effects.
set_mtl_texture
Set native field mtlTexture 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::ImportNativeBufferInfoOHOS
Contract
Native structure VkImportNativeBufferInfoOHOS.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
buffer
buffer: *mut OH_NativeBufferNative field buffer.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_buffer
Set native pointer buffer 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::ImportScreenBufferInfoQNX
Contract
Native structure VkImportScreenBufferInfoQNX.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
buffer
buffer: *mut _screen_bufferNative field buffer.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_buffer
Set native pointer buffer 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::ImportSemaphoreFdInfoKHR
Contract
Native structure VkImportSemaphoreFdInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
semaphore
semaphore: SemaphoreNative field semaphore.
flags
flags: SemaphoreImportFlagsNative field flags.
handle_type
handle_type: ExternalSemaphoreHandleTypeFlagBitsNative field handleType.
fd
fd: i32Native field fd.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_semaphore
Set native field semaphore without native effects.
set_flags
Set native field flags without native effects.
set_handle_type
Set native field handleType without native effects.
set_fd
Set native field fd 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::ImportSemaphoreWin32HandleInfoKHR
Contract
Native structure VkImportSemaphoreWin32HandleInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
semaphore
semaphore: SemaphoreNative field semaphore.
flags
flags: SemaphoreImportFlagsNative field flags.
handle_type
handle_type: ExternalSemaphoreHandleTypeFlagBitsNative field handleType.
handle
handle: HANDLENative field handle.
name
name: LPCWSTRNative field name.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_semaphore
Set native field semaphore without native effects.
set_flags
Set native field flags without native effects.
set_handle_type
Set native field handleType without native effects.
set_handle
Set native field handle without native effects.
set_name
Set native field name 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::ImportSemaphoreZirconHandleInfoFUCHSIA
Contract
Native structure VkImportSemaphoreZirconHandleInfoFUCHSIA.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
semaphore
semaphore: SemaphoreNative field semaphore.
flags
flags: SemaphoreImportFlagsNative field flags.
handle_type
handle_type: ExternalSemaphoreHandleTypeFlagBitsNative field handleType.
zircon_handle
zircon_handle: zx_handle_tNative field zirconHandle.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_semaphore
Set native field semaphore without native effects.
set_flags
Set native field flags without native effects.
set_handle_type
Set native field handleType without native effects.
set_zircon_handle
Set native field zirconHandle 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::IndexType
Contract
Open integer representation of VkIndexType.
Fields
0
0: i32Methods and associated items
UINT16
Native value VK_INDEX_TYPE_UINT16.
UINT32
Native value VK_INDEX_TYPE_UINT32.
UINT8
Native value VK_INDEX_TYPE_UINT8.
NONE_KHR
Native value VK_INDEX_TYPE_NONE_KHR.
NONE_NV
Native value VK_INDEX_TYPE_NONE_NV.
UINT8_EXT
Native value VK_INDEX_TYPE_UINT8_EXT.
UINT8_KHR
Native value VK_INDEX_TYPE_UINT8_KHR.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::IndirectCommandsExecutionSetTokenEXT
Contract
Native structure VkIndirectCommandsExecutionSetTokenEXT.
Fields
type
type: IndirectExecutionSetInfoTypeEXTNative field type.
shader_stages
shader_stages: ShaderStageFlagsNative field shaderStages.
Methods and associated items
new
Construct the record with its default native state.
set_type
Set native field type without native effects.
set_shader_stages
Set native field shaderStages without native effects.
clone
default
Stvk::IndirectCommandsIndexBufferTokenEXT
Contract
Native structure VkIndirectCommandsIndexBufferTokenEXT.
Fields
mode
mode: IndirectCommandsInputModeFlagBitsEXTNative field mode.
Methods and associated items
new
Construct the record with its default native state.
set_mode
Set native field mode without native effects.
clone
default
Stvk::IndirectCommandsInputModeFlagBitsEXT
Contract
Open integer representation of VkIndirectCommandsInputModeFlagBitsEXT.
Fields
0
0: u32Methods and associated items
VULKAN_INDEX_BUFFER_EXT
Native value VK_INDIRECT_COMMANDS_INPUT_MODE_VULKAN_INDEX_BUFFER_EXT.
Khronos reference: VK_INDIRECT_COMMANDS_INPUT_MODE_VULKAN_INDEX_BUFFER_EXT
DXGI_INDEX_BUFFER_EXT
Native value VK_INDIRECT_COMMANDS_INPUT_MODE_DXGI_INDEX_BUFFER_EXT.
Khronos reference: VK_INDIRECT_COMMANDS_INPUT_MODE_DXGI_INDEX_BUFFER_EXT
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::IndirectCommandsLayoutCreateInfoEXT
pub struct IndirectCommandsLayoutCreateInfoEXT<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: IndirectCommandsLayoutUsageFlagsEXT,
pub shader_stages: ShaderStageFlags,
pub indirect_stride: u32,
pub pipeline_layout: PipelineLayout,
pub token_count: u32,
pub p_tokens: *const IndirectCommandsLayoutTokenEXT<'a>,
/* private fields */
}Contract
Native structure VkIndirectCommandsLayoutCreateInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: IndirectCommandsLayoutUsageFlagsEXTNative field flags.
shader_stages
shader_stages: ShaderStageFlagsNative field shaderStages.
indirect_stride
indirect_stride: u32Native field indirectStride.
pipeline_layout
pipeline_layout: PipelineLayoutNative field pipelineLayout.
token_count
token_count: u32Native field tokenCount.
p_tokens
p_tokens: *const IndirectCommandsLayoutTokenEXT<'a>Native field pTokens.
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_shader_stages
Set native field shaderStages without native effects.
set_indirect_stride
Set native field indirectStride without native effects.
set_pipeline_layout
Set native field pipelineLayout without native effects.
set_token_count
Set native count tokenCount 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_tokens
Borrow pTokens and set checked native count tokenCount.
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::IndirectCommandsLayoutCreateInfoNV
pub struct IndirectCommandsLayoutCreateInfoNV<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: IndirectCommandsLayoutUsageFlagsNV,
pub pipeline_bind_point: PipelineBindPoint,
pub token_count: u32,
pub p_tokens: *const IndirectCommandsLayoutTokenNV<'a>,
pub stream_count: u32,
pub p_stream_strides: *const u32,
/* private fields */
}Contract
Native structure VkIndirectCommandsLayoutCreateInfoNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: IndirectCommandsLayoutUsageFlagsNVNative field flags.
pipeline_bind_point
pipeline_bind_point: PipelineBindPointNative field pipelineBindPoint.
token_count
token_count: u32Native field tokenCount.
p_tokens
p_tokens: *const IndirectCommandsLayoutTokenNV<'a>Native field pTokens.
stream_count
stream_count: u32Native field streamCount.
p_stream_strides
p_stream_strides: *const u32Native field pStreamStrides.
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_pipeline_bind_point
Set native field pipelineBindPoint without native effects.
set_token_count
Set native count tokenCount 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_tokens
Borrow pTokens and set checked native count tokenCount.
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_stream_count
Set native count streamCount 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_stream_strides
Borrow pStreamStrides and set checked native count streamCount.
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::IndirectCommandsLayoutEXT
Contract
Raw Vulkan handle VkIndirectCommandsLayoutEXT.
Khronos reference: VkIndirectCommandsLayoutEXT
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::IndirectCommandsLayoutNV
Contract
Raw Vulkan handle VkIndirectCommandsLayoutNV.
Khronos reference: VkIndirectCommandsLayoutNV
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::IndirectCommandsLayoutPushDataTokenNV
Contract
Native structure VkIndirectCommandsLayoutPushDataTokenNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
push_data_offset
push_data_offset: u32Native field pushDataOffset.
push_data_size
push_data_size: u32Native field pushDataSize.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_push_data_offset
Set native field pushDataOffset without native effects.
set_push_data_size
Set native field pushDataSize 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::IndirectCommandsLayoutTokenEXT
Contract
Native structure VkIndirectCommandsLayoutTokenEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
type
type: IndirectCommandsTokenTypeEXTNative field type.
data
data: IndirectCommandsTokenDataEXT<'a>Native field data.
offset
offset: u32Native field offset.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_type
Set native field type without native effects.
set_data
Set native field data without native effects.
set_offset
Set native field offset 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.