vk · Structs · C3
16 public declarations with native signatures and source-owned contracts.
Stvk::ColorComponentFlagBits
Contract
Open integer representation of VkColorComponentFlagBits.
Fields
0
0: u32Methods and associated items
R_BIT
Native value VK_COLOR_COMPONENT_R_BIT.
G_BIT
Native value VK_COLOR_COMPONENT_G_BIT.
B_BIT
Native value VK_COLOR_COMPONENT_B_BIT.
A_BIT
Native value VK_COLOR_COMPONENT_A_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::ColorSpaceKHR
Contract
Open integer representation of VkColorSpaceKHR.
Fields
0
0: i32Methods and associated items
SRGB_NONLINEAR_KHR
Native value VK_COLOR_SPACE_SRGB_NONLINEAR_KHR.
COLORSPACE_SRGB_NONLINEAR_KHR
Native value VK_COLORSPACE_SRGB_NONLINEAR_KHR.
DISPLAY_P3_NONLINEAR_EXT
Native value VK_COLOR_SPACE_DISPLAY_P3_NONLINEAR_EXT.
EXTENDED_SRGB_LINEAR_EXT
Native value VK_COLOR_SPACE_EXTENDED_SRGB_LINEAR_EXT.
DISPLAY_P3_LINEAR_EXT
Native value VK_COLOR_SPACE_DISPLAY_P3_LINEAR_EXT.
DCI_P3_NONLINEAR_EXT
Native value VK_COLOR_SPACE_DCI_P3_NONLINEAR_EXT.
BT709_LINEAR_EXT
Native value VK_COLOR_SPACE_BT709_LINEAR_EXT.
BT709_NONLINEAR_EXT
Native value VK_COLOR_SPACE_BT709_NONLINEAR_EXT.
BT2020_LINEAR_EXT
Native value VK_COLOR_SPACE_BT2020_LINEAR_EXT.
HDR10_ST2084_EXT
Native value VK_COLOR_SPACE_HDR10_ST2084_EXT.
DOLBYVISION_EXT
Native value VK_COLOR_SPACE_DOLBYVISION_EXT.
HDR10_HLG_EXT
Native value VK_COLOR_SPACE_HDR10_HLG_EXT.
ADOBERGB_LINEAR_EXT
Native value VK_COLOR_SPACE_ADOBERGB_LINEAR_EXT.
ADOBERGB_NONLINEAR_EXT
Native value VK_COLOR_SPACE_ADOBERGB_NONLINEAR_EXT.
PASS_THROUGH_EXT
Native value VK_COLOR_SPACE_PASS_THROUGH_EXT.
EXTENDED_SRGB_NONLINEAR_EXT
Native value VK_COLOR_SPACE_EXTENDED_SRGB_NONLINEAR_EXT.
Khronos reference: VK_COLOR_SPACE_EXTENDED_SRGB_NONLINEAR_EXT
DCI_P3_LINEAR_EXT
Native value VK_COLOR_SPACE_DCI_P3_LINEAR_EXT.
DISPLAY_NATIVE_AMD
Native value VK_COLOR_SPACE_DISPLAY_NATIVE_AMD.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::CommandBuffer
Contract
Raw Vulkan handle VkCommandBuffer.
Khronos reference: VkCommandBuffer
Calls using this identity must satisfy Vulkan lifetime and synchronization rules.
Fields
0
0: *mut c_voidMethods 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::CommandBufferAllocateInfo
Contract
Native structure VkCommandBufferAllocateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
command_pool
command_pool: CommandPoolNative field commandPool.
level
level: CommandBufferLevelNative field level.
command_buffer_count
command_buffer_count: u32Native field commandBufferCount.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_command_pool
Set native field commandPool without native effects.
set_level
Set native field level without native effects.
set_command_buffer_count
Set native field commandBufferCount 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::CommandBufferBeginInfo
Contract
Native structure VkCommandBufferBeginInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: CommandBufferUsageFlagsNative field flags.
p_inheritance_info
p_inheritance_info: *const CommandBufferInheritanceInfo<'a>Native field pInheritanceInfo.
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_inheritance_info
Set native field pInheritanceInfo 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::CommandBufferInheritanceConditionalRenderingInfoEXT
Contract
Native structure VkCommandBufferInheritanceConditionalRenderingInfoEXT.
Khronos reference: VkCommandBufferInheritanceConditionalRenderingInfoEXT
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
conditional_rendering_enable
conditional_rendering_enable: Bool32Native field conditionalRenderingEnable.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_conditional_rendering_enable
Set native field conditionalRenderingEnable 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::CommandBufferInheritanceDescriptorHeapInfoEXT
Contract
Native structure VkCommandBufferInheritanceDescriptorHeapInfoEXT.
Khronos reference: VkCommandBufferInheritanceDescriptorHeapInfoEXT
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
p_sampler_heap_bind_info
p_sampler_heap_bind_info: *const BindHeapInfoEXT<'a>Native field pSamplerHeapBindInfo.
p_resource_heap_bind_info
p_resource_heap_bind_info: *const BindHeapInfoEXT<'a>Native field pResourceHeapBindInfo.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_sampler_heap_bind_info
Set native field pSamplerHeapBindInfo without native effects.
set_resource_heap_bind_info
Set native field pResourceHeapBindInfo 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::CommandBufferInheritanceInfo
pub struct CommandBufferInheritanceInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub render_pass: RenderPass,
pub subpass: u32,
pub framebuffer: Framebuffer,
pub occlusion_query_enable: Bool32,
pub query_flags: QueryControlFlags,
pub pipeline_statistics: QueryPipelineStatisticFlags,
/* private fields */
}Contract
Native structure VkCommandBufferInheritanceInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
render_pass
render_pass: RenderPassNative field renderPass.
subpass
subpass: u32Native field subpass.
framebuffer
framebuffer: FramebufferNative field framebuffer.
occlusion_query_enable
occlusion_query_enable: Bool32Native field occlusionQueryEnable.
query_flags
query_flags: QueryControlFlagsNative field queryFlags.
pipeline_statistics
pipeline_statistics: QueryPipelineStatisticFlagsNative field pipelineStatistics.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_render_pass
Set native field renderPass without native effects.
set_subpass
Set native field subpass without native effects.
set_framebuffer
Set native field framebuffer without native effects.
set_occlusion_query_enable
Set native field occlusionQueryEnable without native effects.
set_query_flags
Set native field queryFlags without native effects.
set_pipeline_statistics
Set native field pipelineStatistics 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::CommandBufferInheritanceRenderingInfo
pub struct CommandBufferInheritanceRenderingInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: RenderingFlags,
pub view_mask: u32,
pub color_attachment_count: u32,
pub p_color_attachment_formats: *const Format,
pub depth_attachment_format: Format,
pub stencil_attachment_format: Format,
pub rasterization_samples: SampleCountFlagBits,
/* private fields */
}Contract
Native structure VkCommandBufferInheritanceRenderingInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: RenderingFlagsNative field flags.
view_mask
view_mask: u32Native field viewMask.
color_attachment_count
color_attachment_count: u32Native field colorAttachmentCount.
p_color_attachment_formats
p_color_attachment_formats: *const FormatNative field pColorAttachmentFormats.
depth_attachment_format
depth_attachment_format: FormatNative field depthAttachmentFormat.
stencil_attachment_format
stencil_attachment_format: FormatNative field stencilAttachmentFormat.
rasterization_samples
rasterization_samples: SampleCountFlagBitsNative field rasterizationSamples.
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_view_mask
Set native field viewMask without native effects.
set_color_attachment_count
Set native count colorAttachmentCount 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_color_attachment_formats
Borrow pColorAttachmentFormats and set checked native count colorAttachmentCount.
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_depth_attachment_format
Set native field depthAttachmentFormat without native effects.
set_stencil_attachment_format
Set native field stencilAttachmentFormat without native effects.
set_rasterization_samples
Set native field rasterizationSamples 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::CommandBufferInheritanceRenderPassTransformInfoQCOM
Contract
Native structure VkCommandBufferInheritanceRenderPassTransformInfoQCOM.
Khronos reference: VkCommandBufferInheritanceRenderPassTransformInfoQCOM
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
transform
transform: SurfaceTransformFlagBitsKHRNative field transform.
render_area
render_area: Rect2DNative field renderArea.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_transform
Set native field transform without native effects.
set_render_area
Set native field renderArea 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::CommandBufferInheritanceViewportScissorInfoNV
Contract
Native structure VkCommandBufferInheritanceViewportScissorInfoNV.
Khronos reference: VkCommandBufferInheritanceViewportScissorInfoNV
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
viewport_scissor2_d
viewport_scissor2_d: Bool32Native field viewportScissor2D.
viewport_depth_count
viewport_depth_count: u32Native field viewportDepthCount.
p_viewport_depths
p_viewport_depths: *const ViewportNative field pViewportDepths.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_viewport_scissor2_d
Set native field viewportScissor2D without native effects.
set_viewport_depth_count
Set native field viewportDepthCount without native effects.
set_viewport_depths
Borrow pViewportDepths and set checked native count viewportDepthCount.
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::CommandBufferLevel
Contract
Open integer representation of VkCommandBufferLevel.
Fields
0
0: i32Methods and associated items
PRIMARY
Native value VK_COMMAND_BUFFER_LEVEL_PRIMARY.
SECONDARY
Native value VK_COMMAND_BUFFER_LEVEL_SECONDARY.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::CommandBufferResetFlagBits
Contract
Open integer representation of VkCommandBufferResetFlagBits.
Fields
0
0: u32Methods and associated items
RELEASE_RESOURCES_BIT
Native value VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT.
Khronos reference: VK_COMMAND_BUFFER_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::CommandBufferSubmitInfo
Contract
Native structure VkCommandBufferSubmitInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
command_buffer
command_buffer: CommandBufferNative field commandBuffer.
device_mask
device_mask: u32Native field deviceMask.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_command_buffer
Set native field commandBuffer without native effects.
set_device_mask
Set native field deviceMask 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::CommandBufferUsageFlagBits
Contract
Open integer representation of VkCommandBufferUsageFlagBits.
Fields
0
0: u32Methods and associated items
ONE_TIME_SUBMIT_BIT
Native value VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT.
Khronos reference: VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT
RENDER_PASS_CONTINUE_BIT
Native value VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT.
Khronos reference: VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT
SIMULTANEOUS_USE_BIT
Native value VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT.
Khronos reference: VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_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::CommandMetadata
Fields
name
name: &'static stralias_of
alias_of: Option<&'static str>dispatch
dispatch: &'static strphysical_device
physical_device: boolPhysical-device query, even though it uses instance dispatch.
requirements
requirements: &'static [&'static [CapabilityRequirement]]Alternatives of conjunctions for this exact command spelling.