vk · Structs · F1
16 public declarations with native signatures and source-owned contracts.
Stvk::Fence
Contract
Raw Vulkan handle VkFence.
Khronos reference: VkFence
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::FenceCreateFlagBits
Contract
Open integer representation of VkFenceCreateFlagBits.
Fields
0
0: u32Methods and associated items
SIGNALED_BIT
Native value VK_FENCE_CREATE_SIGNALED_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::FenceCreateInfo
Contract
Native structure VkFenceCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: FenceCreateFlagsNative field flags.
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.
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::FenceGetFdInfoKHR
Contract
Native structure VkFenceGetFdInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
fence
fence: FenceNative field fence.
handle_type
handle_type: ExternalFenceHandleTypeFlagBitsNative field handleType.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_fence
Set native field fence without native effects.
set_handle_type
Set native field handleType 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::FenceGetWin32HandleInfoKHR
Contract
Native structure VkFenceGetWin32HandleInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
fence
fence: FenceNative field fence.
handle_type
handle_type: ExternalFenceHandleTypeFlagBitsNative field handleType.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_fence
Set native field fence without native effects.
set_handle_type
Set native field handleType 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::FenceImportFlagBits
Contract
Open integer representation of VkFenceImportFlagBits.
Fields
0
0: u32Methods and associated items
TEMPORARY_BIT
Native value VK_FENCE_IMPORT_TEMPORARY_BIT.
TEMPORARY_BIT_KHR
Native value VK_FENCE_IMPORT_TEMPORARY_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::Filter
Contract
Open integer representation of VkFilter.
Fields
0
0: i32Methods and associated items
NEAREST
Native value VK_FILTER_NEAREST.
LINEAR
Native value VK_FILTER_LINEAR.
CUBIC_IMG
Native value VK_FILTER_CUBIC_IMG.
CUBIC_EXT
Native value VK_FILTER_CUBIC_EXT.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::FilterCubicImageViewImageFormatPropertiesEXT
Contract
Native structure VkFilterCubicImageViewImageFormatPropertiesEXT.
Khronos reference: VkFilterCubicImageViewImageFormatPropertiesEXT
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
filter_cubic
filter_cubic: Bool32Native field filterCubic.
filter_cubic_minmax
filter_cubic_minmax: Bool32Native field filterCubicMinmax.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_filter_cubic
Set native field filterCubic without native effects.
set_filter_cubic_minmax
Set native field filterCubicMinmax 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::FnEntry
pub struct FnEntry {
pub create_instance: PFN_vkCreateInstance,
pub get_instance_proc_addr: PFN_vkGetInstanceProcAddr,
pub enumerate_instance_version: PFN_vkEnumerateInstanceVersion,
pub enumerate_instance_layer_properties: PFN_vkEnumerateInstanceLayerProperties,
pub enumerate_instance_extension_properties: PFN_vkEnumerateInstanceExtensionProperties,
}Contract
Cached nullable PFNs for Global dispatch.
A resolved pointer does not establish enabled API, extension or feature state. Keep the native objects and supplying library alive while using these pointers.
Fields
create_instance
create_instance: PFN_vkCreateInstanceCached function pointer for vkCreateInstance.
get_instance_proc_addr
get_instance_proc_addr: PFN_vkGetInstanceProcAddrCached function pointer for vkGetInstanceProcAddr.
enumerate_instance_version
enumerate_instance_version: PFN_vkEnumerateInstanceVersionCached function pointer for vkEnumerateInstanceVersion.
enumerate_instance_layer_properties
enumerate_instance_layer_properties: PFN_vkEnumerateInstanceLayerPropertiesCached function pointer for vkEnumerateInstanceLayerProperties.
enumerate_instance_extension_properties
enumerate_instance_extension_properties: PFN_vkEnumerateInstanceExtensionPropertiesCached function pointer for vkEnumerateInstanceExtensionProperties.
Methods and associated items
new_from_resolver
Load all commands for this dispatch level.
Safety
load must implement the Vulkan proc-addr contract and remain callable
for the lifetime of this table and all derived raw function pointers.
clone
default
Stvk::FormatFeatureFlagBits
Contract
Open integer representation of VkFormatFeatureFlagBits.
Fields
0
0: u32Methods and associated items
SAMPLED_IMAGE_BIT
Native value VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT.
STORAGE_IMAGE_BIT
Native value VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT.
STORAGE_IMAGE_ATOMIC_BIT
Native value VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT.
Khronos reference: VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT
UNIFORM_TEXEL_BUFFER_BIT
Native value VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT.
Khronos reference: VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT
STORAGE_TEXEL_BUFFER_BIT
Native value VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT.
Khronos reference: VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT
STORAGE_TEXEL_BUFFER_ATOMIC_BIT
Native value VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT.
Khronos reference: VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT
VERTEX_BUFFER_BIT
Native value VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT.
COLOR_ATTACHMENT_BIT
Native value VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT.
COLOR_ATTACHMENT_BLEND_BIT
Native value VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT.
Khronos reference: VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
DEPTH_STENCIL_ATTACHMENT_BIT
Native value VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT.
Khronos reference: VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT
BLIT_SRC_BIT
Native value VK_FORMAT_FEATURE_BLIT_SRC_BIT.
BLIT_DST_BIT
Native value VK_FORMAT_FEATURE_BLIT_DST_BIT.
SAMPLED_IMAGE_FILTER_LINEAR_BIT
Native value VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT.
Khronos reference: VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
TRANSFER_SRC_BIT
Native value VK_FORMAT_FEATURE_TRANSFER_SRC_BIT.
TRANSFER_DST_BIT
Native value VK_FORMAT_FEATURE_TRANSFER_DST_BIT.
MIDPOINT_CHROMA_SAMPLES_BIT
Native value VK_FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT.
Khronos reference: VK_FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT
SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT
Native value VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT.
Khronos reference: VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT
SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT
Native value VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT.
SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT
Native value VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT.
SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT
Native value VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT.
DISJOINT_BIT
Native value VK_FORMAT_FEATURE_DISJOINT_BIT.
COSITED_CHROMA_SAMPLES_BIT
Native value VK_FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT.
Khronos reference: VK_FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT
SAMPLED_IMAGE_FILTER_MINMAX_BIT
Native value VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT.
Khronos reference: VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT
SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG
Native value VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG.
Khronos reference: VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG
VIDEO_DECODE_OUTPUT_BIT_KHR
Native value VK_FORMAT_FEATURE_VIDEO_DECODE_OUTPUT_BIT_KHR.
Khronos reference: VK_FORMAT_FEATURE_VIDEO_DECODE_OUTPUT_BIT_KHR
VIDEO_DECODE_DPB_BIT_KHR
Native value VK_FORMAT_FEATURE_VIDEO_DECODE_DPB_BIT_KHR.
Khronos reference: VK_FORMAT_FEATURE_VIDEO_DECODE_DPB_BIT_KHR
TRANSFER_SRC_BIT_KHR
Native value VK_FORMAT_FEATURE_TRANSFER_SRC_BIT_KHR.
TRANSFER_DST_BIT_KHR
Native value VK_FORMAT_FEATURE_TRANSFER_DST_BIT_KHR.
SAMPLED_IMAGE_FILTER_MINMAX_BIT_EXT
Native value VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT_EXT.
Khronos reference: VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT_EXT
ACCELERATION_STRUCTURE_VERTEX_BUFFER_BIT_KHR
Native value VK_FORMAT_FEATURE_ACCELERATION_STRUCTURE_VERTEX_BUFFER_BIT_KHR.
Khronos reference: VK_FORMAT_FEATURE_ACCELERATION_STRUCTURE_VERTEX_BUFFER_BIT_KHR
MIDPOINT_CHROMA_SAMPLES_BIT_KHR
Native value VK_FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT_KHR.
Khronos reference: VK_FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT_KHR
SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT_KHR
Native value VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT_KHR.
Khronos reference: VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT_KHR
SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT_KHR
Native value VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT_KHR.
SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT_KHR
Native value VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT_KHR.
SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT_KHR
Native value VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT_KHR.
DISJOINT_BIT_KHR
Native value VK_FORMAT_FEATURE_DISJOINT_BIT_KHR.
COSITED_CHROMA_SAMPLES_BIT_KHR
Native value VK_FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT_KHR.
Khronos reference: VK_FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT_KHR
SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT
Native value VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT.
Khronos reference: VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT
FRAGMENT_DENSITY_MAP_BIT_EXT
Native value VK_FORMAT_FEATURE_FRAGMENT_DENSITY_MAP_BIT_EXT.
Khronos reference: VK_FORMAT_FEATURE_FRAGMENT_DENSITY_MAP_BIT_EXT
FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR
Native value VK_FORMAT_FEATURE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR.
Khronos reference: VK_FORMAT_FEATURE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR
VIDEO_ENCODE_INPUT_BIT_KHR
Native value VK_FORMAT_FEATURE_VIDEO_ENCODE_INPUT_BIT_KHR.
Khronos reference: VK_FORMAT_FEATURE_VIDEO_ENCODE_INPUT_BIT_KHR
VIDEO_ENCODE_DPB_BIT_KHR
Native value VK_FORMAT_FEATURE_VIDEO_ENCODE_DPB_BIT_KHR.
Khronos reference: VK_FORMAT_FEATURE_VIDEO_ENCODE_DPB_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::FormatFeatureFlagBits4KHR
Contract
Open integer representation of VkFormatFeatureFlagBits4KHR.
Fields
0
0: u64Methods 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::FormatProperties
Contract
Native structure VkFormatProperties.
Fields
linear_tiling_features
linear_tiling_features: FormatFeatureFlagsNative field linearTilingFeatures.
optimal_tiling_features
optimal_tiling_features: FormatFeatureFlagsNative field optimalTilingFeatures.
buffer_features
buffer_features: FormatFeatureFlagsNative field bufferFeatures.
Methods and associated items
new
Construct the record with its default native state.
set_linear_tiling_features
Set native field linearTilingFeatures without native effects.
set_optimal_tiling_features
Set native field optimalTilingFeatures without native effects.
set_buffer_features
Set native field bufferFeatures without native effects.
clone
default
Stvk::FormatProperties2
Contract
Native structure VkFormatProperties2.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
format_properties
format_properties: FormatPropertiesNative field formatProperties.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_format_properties
Set native field formatProperties 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::FormatProperties3
Contract
Native structure VkFormatProperties3.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
linear_tiling_features
linear_tiling_features: FormatFeatureFlags2Native field linearTilingFeatures.
optimal_tiling_features
optimal_tiling_features: FormatFeatureFlags2Native field optimalTilingFeatures.
buffer_features
buffer_features: FormatFeatureFlags2Native field bufferFeatures.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_linear_tiling_features
Set native field linearTilingFeatures without native effects.
set_optimal_tiling_features
Set native field optimalTilingFeatures without native effects.
set_buffer_features
Set native field bufferFeatures 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::FormatProperties4KHR
Contract
Native structure VkFormatProperties4KHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
linear_tiling_features
linear_tiling_features: FormatFeatureFlags4KHRNative field linearTilingFeatures.
optimal_tiling_features
optimal_tiling_features: FormatFeatureFlags4KHRNative field optimalTilingFeatures.
buffer_features
buffer_features: FormatFeatureFlags4KHRNative field bufferFeatures.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_linear_tiling_features
Set native field linearTilingFeatures without native effects.
set_optimal_tiling_features
Set native field optimalTilingFeatures without native effects.
set_buffer_features
Set native field bufferFeatures 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::FragmentShadingRateAttachmentInfoKHR
Contract
Native structure VkFragmentShadingRateAttachmentInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
p_fragment_shading_rate_attachment
p_fragment_shading_rate_attachment: *const AttachmentReference2<'a>Native field pFragmentShadingRateAttachment.
shading_rate_attachment_texel_size
shading_rate_attachment_texel_size: Extent2DNative field shadingRateAttachmentTexelSize.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_fragment_shading_rate_attachment
Set native field pFragmentShadingRateAttachment without native effects.
set_shading_rate_attachment_texel_size
Set native field shadingRateAttachmentTexelSize 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.