vk · Structs · C4
16 public declarations with native signatures and source-owned contracts.
Stvk::CommandPool
Contract
Raw Vulkan handle VkCommandPool.
Khronos reference: VkCommandPool
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::CommandPoolCreateFlagBits
Contract
Open integer representation of VkCommandPoolCreateFlagBits.
Fields
0
0: u32Methods and associated items
TRANSIENT_BIT
Native value VK_COMMAND_POOL_CREATE_TRANSIENT_BIT.
RESET_COMMAND_BUFFER_BIT
Native value VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT.
Khronos reference: VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT
PROTECTED_BIT
Native value VK_COMMAND_POOL_CREATE_PROTECTED_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::CommandPoolCreateInfo
Contract
Native structure VkCommandPoolCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: CommandPoolCreateFlagsNative field flags.
queue_family_index
queue_family_index: u32Native field queueFamilyIndex.
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_queue_family_index
Set native field queueFamilyIndex 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::CommandPoolResetFlagBits
Contract
Open integer representation of VkCommandPoolResetFlagBits.
Fields
0
0: u32Methods and associated items
RELEASE_RESOURCES_BIT
Native value VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT.
Khronos reference: VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_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::CommandPoolTrimFlags
Contract
Open integer representation of VkCommandPoolTrimFlags.
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::CompareOp
Contract
Open integer representation of VkCompareOp.
Fields
0
0: i32Methods and associated items
NEVER
Native value VK_COMPARE_OP_NEVER.
LESS
Native value VK_COMPARE_OP_LESS.
EQUAL
Native value VK_COMPARE_OP_EQUAL.
LESS_OR_EQUAL
Native value VK_COMPARE_OP_LESS_OR_EQUAL.
GREATER
Native value VK_COMPARE_OP_GREATER.
NOT_EQUAL
Native value VK_COMPARE_OP_NOT_EQUAL.
GREATER_OR_EQUAL
Native value VK_COMPARE_OP_GREATER_OR_EQUAL.
ALWAYS
Native value VK_COMPARE_OP_ALWAYS.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::ComponentMapping
Contract
Native structure VkComponentMapping.
Fields
r
r: ComponentSwizzleNative field r.
g
g: ComponentSwizzleNative field g.
b
b: ComponentSwizzleNative field b.
a
a: ComponentSwizzleNative field a.
Methods and associated items
new
Construct the record with its default native state.
set_r
Set native field r without native effects.
set_g
Set native field g without native effects.
set_b
Set native field b without native effects.
set_a
Set native field a without native effects.
clone
default
Stvk::ComponentSwizzle
Contract
Open integer representation of VkComponentSwizzle.
Fields
0
0: i32Methods and associated items
IDENTITY
Native value VK_COMPONENT_SWIZZLE_IDENTITY.
ZERO
Native value VK_COMPONENT_SWIZZLE_ZERO.
ONE
Native value VK_COMPONENT_SWIZZLE_ONE.
R
Native value VK_COMPONENT_SWIZZLE_R.
G
Native value VK_COMPONENT_SWIZZLE_G.
B
Native value VK_COMPONENT_SWIZZLE_B.
A
Native value VK_COMPONENT_SWIZZLE_A.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::ComponentTypeKHR
Contract
Open integer representation of VkComponentTypeKHR.
Fields
0
0: i32Methods and associated items
FLOAT16_KHR
Native value VK_COMPONENT_TYPE_FLOAT16_KHR.
FLOAT32_KHR
Native value VK_COMPONENT_TYPE_FLOAT32_KHR.
FLOAT64_KHR
Native value VK_COMPONENT_TYPE_FLOAT64_KHR.
SINT8_KHR
Native value VK_COMPONENT_TYPE_SINT8_KHR.
SINT16_KHR
Native value VK_COMPONENT_TYPE_SINT16_KHR.
SINT32_KHR
Native value VK_COMPONENT_TYPE_SINT32_KHR.
SINT64_KHR
Native value VK_COMPONENT_TYPE_SINT64_KHR.
UINT8_KHR
Native value VK_COMPONENT_TYPE_UINT8_KHR.
UINT16_KHR
Native value VK_COMPONENT_TYPE_UINT16_KHR.
UINT32_KHR
Native value VK_COMPONENT_TYPE_UINT32_KHR.
UINT64_KHR
Native value VK_COMPONENT_TYPE_UINT64_KHR.
BFLOAT16_KHR
Native value VK_COMPONENT_TYPE_BFLOAT16_KHR.
FLOAT16_NV
Native value VK_COMPONENT_TYPE_FLOAT16_NV.
FLOAT32_NV
Native value VK_COMPONENT_TYPE_FLOAT32_NV.
FLOAT64_NV
Native value VK_COMPONENT_TYPE_FLOAT64_NV.
SINT8_NV
Native value VK_COMPONENT_TYPE_SINT8_NV.
SINT16_NV
Native value VK_COMPONENT_TYPE_SINT16_NV.
SINT32_NV
Native value VK_COMPONENT_TYPE_SINT32_NV.
SINT64_NV
Native value VK_COMPONENT_TYPE_SINT64_NV.
UINT8_NV
Native value VK_COMPONENT_TYPE_UINT8_NV.
UINT16_NV
Native value VK_COMPONENT_TYPE_UINT16_NV.
UINT32_NV
Native value VK_COMPONENT_TYPE_UINT32_NV.
UINT64_NV
Native value VK_COMPONENT_TYPE_UINT64_NV.
SINT8_PACKED_NV
Native value VK_COMPONENT_TYPE_SINT8_PACKED_NV.
UINT8_PACKED_NV
Native value VK_COMPONENT_TYPE_UINT8_PACKED_NV.
FLOAT_E4M3_NV
Native value VK_COMPONENT_TYPE_FLOAT_E4M3_NV.
FLOAT_E5M2_NV
Native value VK_COMPONENT_TYPE_FLOAT_E5M2_NV.
FLOAT8_E4M3_EXT
Native value VK_COMPONENT_TYPE_FLOAT8_E4M3_EXT.
FLOAT8_E5M2_EXT
Native value VK_COMPONENT_TYPE_FLOAT8_E5M2_EXT.
FLOAT6_E2M3_EXT
Native value VK_COMPONENT_TYPE_FLOAT6_E2M3_EXT.
FLOAT6_E3M2_EXT
Native value VK_COMPONENT_TYPE_FLOAT6_E3M2_EXT.
FLOAT4_E2M1_EXT
Native value VK_COMPONENT_TYPE_FLOAT4_E2M1_EXT.
FLOAT8_UNSIGNED_E8M0_EXT
Native value VK_COMPONENT_TYPE_FLOAT8_UNSIGNED_E8M0_EXT.
Khronos reference: VK_COMPONENT_TYPE_FLOAT8_UNSIGNED_E8M0_EXT
MXINT8_EXT
Native value VK_COMPONENT_TYPE_MXINT8_EXT.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::CompositeAlphaFlagBitsKHR
Contract
Open integer representation of VkCompositeAlphaFlagBitsKHR.
Fields
0
0: u32Methods and associated items
OPAQUE_BIT_KHR
Native value VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR.
PRE_MULTIPLIED_BIT_KHR
Native value VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR.
Khronos reference: VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR
POST_MULTIPLIED_BIT_KHR
Native value VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR.
Khronos reference: VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR
INHERIT_BIT_KHR
Native value VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR.
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::CompressedTriangleFormatAMDX
Contract
Open integer representation of VkCompressedTriangleFormatAMDX.
Fields
0
0: i32Methods and associated items
COMPRESSED_TRIANGLE_FORMAT_DGF1_AMDX
Native value VK_COMPRESSED_TRIANGLE_FORMAT_DGF1_AMDX.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::ComputeOccupancyPriorityParametersNV
Contract
Native structure VkComputeOccupancyPriorityParametersNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
occupancy_priority
occupancy_priority: f32Native field occupancyPriority.
occupancy_throttling
occupancy_throttling: f32Native field occupancyThrottling.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_occupancy_priority
Set native field occupancyPriority without native effects.
set_occupancy_throttling
Set native field occupancyThrottling 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::ComputePipelineCreateInfo
Contract
Native structure VkComputePipelineCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: PipelineCreateFlagsNative field flags.
stage
stage: PipelineShaderStageCreateInfo<'a>Native field stage.
layout
layout: PipelineLayoutNative field layout.
base_pipeline_handle
base_pipeline_handle: PipelineNative field basePipelineHandle.
base_pipeline_index
base_pipeline_index: i32Native field basePipelineIndex.
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_stage
Set native field stage without native effects.
set_layout
Set native field layout without native effects.
set_base_pipeline_handle
Set native field basePipelineHandle without native effects.
set_base_pipeline_index
Set native field basePipelineIndex 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::ComputePipelineIndirectBufferInfoNV
Contract
Native structure VkComputePipelineIndirectBufferInfoNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
device_address
device_address: DeviceAddressNative field deviceAddress.
size
size: DeviceSizeNative field size.
pipeline_device_address_capture_replay
pipeline_device_address_capture_replay: DeviceAddressNative field pipelineDeviceAddressCaptureReplay.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_device_address
Set native field deviceAddress without native effects.
set_size
Set native field size without native effects.
set_pipeline_device_address_capture_replay
Set native field pipelineDeviceAddressCaptureReplay 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::ConditionalRenderingBeginInfo2EXT
Contract
Native structure VkConditionalRenderingBeginInfo2EXT.
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.
flags
flags: ConditionalRenderingFlagsEXTNative field flags.
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.
set_flags
Set native field flags 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::ConditionalRenderingBeginInfoEXT
Contract
Native structure VkConditionalRenderingBeginInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
buffer
buffer: BufferNative field buffer.
offset
offset: DeviceSizeNative field offset.
flags
flags: ConditionalRenderingFlagsEXTNative field flags.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_buffer
Set native field buffer without native effects.
set_offset
Set native field offset without native effects.
set_flags
Set native field flags 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.