vk · Structs · I2
16 public declarations with native signatures and source-owned contracts.
Stvk::ImageCreateFlagBits
Contract
Open integer representation of VkImageCreateFlagBits.
Fields
0
0: u32Methods and associated items
SPARSE_BINDING_BIT
Native value VK_IMAGE_CREATE_SPARSE_BINDING_BIT.
SPARSE_RESIDENCY_BIT
Native value VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT.
SPARSE_ALIASED_BIT
Native value VK_IMAGE_CREATE_SPARSE_ALIASED_BIT.
MUTABLE_FORMAT_BIT
Native value VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT.
CUBE_COMPATIBLE_BIT
Native value VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT.
ALIAS_BIT
Native value VK_IMAGE_CREATE_ALIAS_BIT.
SPLIT_INSTANCE_BIND_REGIONS_BIT
Native value VK_IMAGE_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT.
Khronos reference: VK_IMAGE_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT
_2D_ARRAY_COMPATIBLE_BIT
Native value VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT.
BLOCK_TEXEL_VIEW_COMPATIBLE_BIT
Native value VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT.
Khronos reference: VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT
EXTENDED_USAGE_BIT
Native value VK_IMAGE_CREATE_EXTENDED_USAGE_BIT.
PROTECTED_BIT
Native value VK_IMAGE_CREATE_PROTECTED_BIT.
DISJOINT_BIT
Native value VK_IMAGE_CREATE_DISJOINT_BIT.
CORNER_SAMPLED_BIT_NV
Native value VK_IMAGE_CREATE_CORNER_SAMPLED_BIT_NV.
SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR
Native value VK_IMAGE_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR.
Khronos reference: VK_IMAGE_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR
_2D_ARRAY_COMPATIBLE_BIT_KHR
Native value VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT_KHR.
Khronos reference: VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT_KHR
BLOCK_TEXEL_VIEW_COMPATIBLE_BIT_KHR
Native value VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT_KHR.
Khronos reference: VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT_KHR
EXTENDED_USAGE_BIT_KHR
Native value VK_IMAGE_CREATE_EXTENDED_USAGE_BIT_KHR.
DESCRIPTOR_HEAP_CAPTURE_REPLAY_BIT_EXT
Native value VK_IMAGE_CREATE_DESCRIPTOR_HEAP_CAPTURE_REPLAY_BIT_EXT.
Khronos reference: VK_IMAGE_CREATE_DESCRIPTOR_HEAP_CAPTURE_REPLAY_BIT_EXT
SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
Native value VK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT.
Khronos reference: VK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
DISJOINT_BIT_KHR
Native value VK_IMAGE_CREATE_DISJOINT_BIT_KHR.
ALIAS_BIT_KHR
Native value VK_IMAGE_CREATE_ALIAS_BIT_KHR.
SUBSAMPLED_BIT_EXT
Native value VK_IMAGE_CREATE_SUBSAMPLED_BIT_EXT.
DESCRIPTOR_BUFFER_CAPTURE_REPLAY_BIT_EXT
Native value VK_IMAGE_CREATE_DESCRIPTOR_BUFFER_CAPTURE_REPLAY_BIT_EXT.
Khronos reference: VK_IMAGE_CREATE_DESCRIPTOR_BUFFER_CAPTURE_REPLAY_BIT_EXT
MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_BIT_EXT
Native value VK_IMAGE_CREATE_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_BIT_EXT.
Khronos reference: VK_IMAGE_CREATE_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_BIT_EXT
_2D_VIEW_COMPATIBLE_BIT_EXT
Native value VK_IMAGE_CREATE_2D_VIEW_COMPATIBLE_BIT_EXT.
Khronos reference: VK_IMAGE_CREATE_2D_VIEW_COMPATIBLE_BIT_EXT
FRAGMENT_DENSITY_MAP_OFFSET_BIT_QCOM
Native value VK_IMAGE_CREATE_FRAGMENT_DENSITY_MAP_OFFSET_BIT_QCOM.
Khronos reference: VK_IMAGE_CREATE_FRAGMENT_DENSITY_MAP_OFFSET_BIT_QCOM
VIDEO_PROFILE_INDEPENDENT_BIT_KHR
Native value VK_IMAGE_CREATE_VIDEO_PROFILE_INDEPENDENT_BIT_KHR.
Khronos reference: VK_IMAGE_CREATE_VIDEO_PROFILE_INDEPENDENT_BIT_KHR
FRAGMENT_DENSITY_MAP_OFFSET_BIT_EXT
Native value VK_IMAGE_CREATE_FRAGMENT_DENSITY_MAP_OFFSET_BIT_EXT.
Khronos reference: VK_IMAGE_CREATE_FRAGMENT_DENSITY_MAP_OFFSET_BIT_EXT
ALIAS_SINGLE_LAYER_DESCRIPTOR_BIT_KHR
Native value VK_IMAGE_CREATE_ALIAS_SINGLE_LAYER_DESCRIPTOR_BIT_KHR.
Khronos reference: VK_IMAGE_CREATE_ALIAS_SINGLE_LAYER_DESCRIPTOR_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::ImageCreateFlagBits2KHR
Contract
Open integer representation of VkImageCreateFlagBits2KHR.
Fields
0
0: u64Methods and associated items
SPARSE_BINDING_BIT_KHR
Native value VK_IMAGE_CREATE_2_SPARSE_BINDING_BIT_KHR.
SPARSE_RESIDENCY_BIT_KHR
Native value VK_IMAGE_CREATE_2_SPARSE_RESIDENCY_BIT_KHR.
Khronos reference: VK_IMAGE_CREATE_2_SPARSE_RESIDENCY_BIT_KHR
SPARSE_ALIASED_BIT_KHR
Native value VK_IMAGE_CREATE_2_SPARSE_ALIASED_BIT_KHR.
MUTABLE_FORMAT_BIT_KHR
Native value VK_IMAGE_CREATE_2_MUTABLE_FORMAT_BIT_KHR.
CUBE_COMPATIBLE_BIT_KHR
Native value VK_IMAGE_CREATE_2_CUBE_COMPATIBLE_BIT_KHR.
Khronos reference: VK_IMAGE_CREATE_2_CUBE_COMPATIBLE_BIT_KHR
ALIAS_SINGLE_LAYER_DESCRIPTOR_BIT_KHR
Native value VK_IMAGE_CREATE_2_ALIAS_SINGLE_LAYER_DESCRIPTOR_BIT_KHR.
Khronos reference: VK_IMAGE_CREATE_2_ALIAS_SINGLE_LAYER_DESCRIPTOR_BIT_KHR
_2D_ARRAY_COMPATIBLE_BIT_KHR
Native value VK_IMAGE_CREATE_2_2D_ARRAY_COMPATIBLE_BIT_KHR.
Khronos reference: VK_IMAGE_CREATE_2_2D_ARRAY_COMPATIBLE_BIT_KHR
SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR
Native value VK_IMAGE_CREATE_2_SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR.
Khronos reference: VK_IMAGE_CREATE_2_SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR
BLOCK_TEXEL_VIEW_COMPATIBLE_BIT_KHR
Native value VK_IMAGE_CREATE_2_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT_KHR.
Khronos reference: VK_IMAGE_CREATE_2_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT_KHR
EXTENDED_USAGE_BIT_KHR
Native value VK_IMAGE_CREATE_2_EXTENDED_USAGE_BIT_KHR.
DISJOINT_BIT_KHR
Native value VK_IMAGE_CREATE_2_DISJOINT_BIT_KHR.
ALIAS_BIT_KHR
Native value VK_IMAGE_CREATE_2_ALIAS_BIT_KHR.
PROTECTED_BIT_KHR
Native value VK_IMAGE_CREATE_2_PROTECTED_BIT_KHR.
SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
Native value VK_IMAGE_CREATE_2_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT.
Khronos reference: VK_IMAGE_CREATE_2_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
CORNER_SAMPLED_BIT_NV
Native value VK_IMAGE_CREATE_2_CORNER_SAMPLED_BIT_NV.
SUBSAMPLED_BIT_EXT
Native value VK_IMAGE_CREATE_2_SUBSAMPLED_BIT_EXT.
FRAGMENT_DENSITY_MAP_OFFSET_BIT_EXT
Native value VK_IMAGE_CREATE_2_FRAGMENT_DENSITY_MAP_OFFSET_BIT_EXT.
Khronos reference: VK_IMAGE_CREATE_2_FRAGMENT_DENSITY_MAP_OFFSET_BIT_EXT
DESCRIPTOR_BUFFER_CAPTURE_REPLAY_BIT_EXT
Native value VK_IMAGE_CREATE_2_DESCRIPTOR_BUFFER_CAPTURE_REPLAY_BIT_EXT.
Khronos reference: VK_IMAGE_CREATE_2_DESCRIPTOR_BUFFER_CAPTURE_REPLAY_BIT_EXT
_2D_VIEW_COMPATIBLE_BIT_EXT
Native value VK_IMAGE_CREATE_2_2D_VIEW_COMPATIBLE_BIT_EXT.
Khronos reference: VK_IMAGE_CREATE_2_2D_VIEW_COMPATIBLE_BIT_EXT
MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_BIT_EXT
Native value VK_IMAGE_CREATE_2_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_BIT_EXT.
Khronos reference: VK_IMAGE_CREATE_2_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_BIT_EXT
VIDEO_PROFILE_INDEPENDENT_BIT_KHR
Native value VK_IMAGE_CREATE_2_VIDEO_PROFILE_INDEPENDENT_BIT_KHR.
Khronos reference: VK_IMAGE_CREATE_2_VIDEO_PROFILE_INDEPENDENT_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::ImageCreateFlags2CreateInfoKHR
Contract
Native structure VkImageCreateFlags2CreateInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
flags
flags: ImageCreateFlags2KHRNative 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::ImageCreateInfo
pub struct ImageCreateInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: ImageCreateFlags,
pub image_type: ImageType,
pub format: Format,
pub extent: Extent3D,
pub mip_levels: u32,
pub array_layers: u32,
pub samples: SampleCountFlagBits,
pub tiling: ImageTiling,
pub usage: ImageUsageFlags,
pub sharing_mode: SharingMode,
pub queue_family_index_count: u32,
pub p_queue_family_indices: *const u32,
pub initial_layout: ImageLayout,
/* private fields */
}Contract
Native structure VkImageCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: ImageCreateFlagsNative field flags.
image_type
image_type: ImageTypeNative field imageType.
format
format: FormatNative field format.
extent
extent: Extent3DNative field extent.
mip_levels
mip_levels: u32Native field mipLevels.
array_layers
array_layers: u32Native field arrayLayers.
samples
samples: SampleCountFlagBitsNative field samples.
tiling
tiling: ImageTilingNative field tiling.
usage
usage: ImageUsageFlagsNative field usage.
sharing_mode
sharing_mode: SharingModeNative field sharingMode.
queue_family_index_count
queue_family_index_count: u32Native field queueFamilyIndexCount.
p_queue_family_indices
p_queue_family_indices: *const u32Native field pQueueFamilyIndices.
initial_layout
initial_layout: ImageLayoutNative field initialLayout.
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_image_type
Set native field imageType without native effects.
set_format
Set native field format without native effects.
set_extent
Set native field extent without native effects.
set_mip_levels
Set native field mipLevels without native effects.
set_array_layers
Set native field arrayLayers without native effects.
set_samples
Set native field samples without native effects.
set_tiling
Set native field tiling without native effects.
set_usage
Set native field usage without native effects.
set_sharing_mode
Set native field sharingMode without native effects.
set_queue_family_index_count
Set native count queueFamilyIndexCount 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_queue_family_indices
Borrow pQueueFamilyIndices and set checked native count queueFamilyIndexCount.
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_initial_layout
Set native field initialLayout 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::ImageDescriptorInfoEXT
Contract
Native structure VkImageDescriptorInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
p_view
p_view: *const ImageViewCreateInfo<'a>Native field pView.
layout
layout: ImageLayoutNative field layout.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_view
Set native field pView without native effects.
set_layout
Set native field layout 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::ImageDrmFormatModifierExplicitCreateInfoEXT
Contract
Native structure VkImageDrmFormatModifierExplicitCreateInfoEXT.
Khronos reference: VkImageDrmFormatModifierExplicitCreateInfoEXT
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
drm_format_modifier
drm_format_modifier: u64Native field drmFormatModifier.
drm_format_modifier_plane_count
drm_format_modifier_plane_count: u32Native field drmFormatModifierPlaneCount.
p_plane_layouts
p_plane_layouts: *const SubresourceLayoutNative field pPlaneLayouts.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_drm_format_modifier
Set native field drmFormatModifier without native effects.
set_drm_format_modifier_plane_count
Set native count drmFormatModifierPlaneCount 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_plane_layouts
Borrow pPlaneLayouts and set checked native count drmFormatModifierPlaneCount.
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::ImageDrmFormatModifierListCreateInfoEXT
Contract
Native structure VkImageDrmFormatModifierListCreateInfoEXT.
Khronos reference: VkImageDrmFormatModifierListCreateInfoEXT
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
drm_format_modifier_count
drm_format_modifier_count: u32Native field drmFormatModifierCount.
p_drm_format_modifiers
p_drm_format_modifiers: *const u64Native field pDrmFormatModifiers.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_drm_format_modifier_count
Set native count drmFormatModifierCount 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_drm_format_modifiers
Borrow pDrmFormatModifiers and set checked native count drmFormatModifierCount.
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::ImageDrmFormatModifierPropertiesEXT
Contract
Native structure VkImageDrmFormatModifierPropertiesEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
drm_format_modifier
drm_format_modifier: u64Native field drmFormatModifier.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_drm_format_modifier
Set native field drmFormatModifier 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::ImageFormatConstraintsFlagsFUCHSIA
Contract
Open integer representation of VkImageFormatConstraintsFlagsFUCHSIA.
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::ImageFormatConstraintsInfoFUCHSIA
pub struct ImageFormatConstraintsInfoFUCHSIA<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub image_create_info: ImageCreateInfo<'a>,
pub required_format_features: FormatFeatureFlags,
pub flags: ImageFormatConstraintsFlagsFUCHSIA,
pub sysmem_pixel_format: u64,
pub color_space_count: u32,
pub p_color_spaces: *const SysmemColorSpaceFUCHSIA<'a>,
/* private fields */
}Contract
Native structure VkImageFormatConstraintsInfoFUCHSIA.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
image_create_info
image_create_info: ImageCreateInfo<'a>Native field imageCreateInfo.
required_format_features
required_format_features: FormatFeatureFlagsNative field requiredFormatFeatures.
flags
flags: ImageFormatConstraintsFlagsFUCHSIANative field flags.
sysmem_pixel_format
sysmem_pixel_format: u64Native field sysmemPixelFormat.
color_space_count
color_space_count: u32Native field colorSpaceCount.
p_color_spaces
p_color_spaces: *const SysmemColorSpaceFUCHSIA<'a>Native field pColorSpaces.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_image_create_info
Set native field imageCreateInfo without native effects.
set_required_format_features
Set native field requiredFormatFeatures without native effects.
set_flags
Set native field flags without native effects.
set_sysmem_pixel_format
Set native field sysmemPixelFormat without native effects.
set_color_space_count
Set native count colorSpaceCount 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_spaces
Borrow pColorSpaces and set checked native count colorSpaceCount.
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::ImageFormatListCreateInfo
Contract
Native structure VkImageFormatListCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
view_format_count
view_format_count: u32Native field viewFormatCount.
p_view_formats
p_view_formats: *const FormatNative field pViewFormats.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_view_format_count
Set native count viewFormatCount 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_view_formats
Borrow pViewFormats and set checked native count viewFormatCount.
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::ImageFormatProperties
Contract
Native structure VkImageFormatProperties.
Fields
max_extent
max_extent: Extent3DNative field maxExtent.
max_mip_levels
max_mip_levels: u32Native field maxMipLevels.
max_array_layers
max_array_layers: u32Native field maxArrayLayers.
sample_counts
sample_counts: SampleCountFlagsNative field sampleCounts.
max_resource_size
max_resource_size: DeviceSizeNative field maxResourceSize.
Methods and associated items
new
Construct the record with its default native state.
set_max_extent
Set native field maxExtent without native effects.
set_max_mip_levels
Set native field maxMipLevels without native effects.
set_max_array_layers
Set native field maxArrayLayers without native effects.
set_sample_counts
Set native field sampleCounts without native effects.
set_max_resource_size
Set native field maxResourceSize without native effects.
clone
default
Stvk::ImageFormatProperties2
Contract
Native structure VkImageFormatProperties2.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
image_format_properties
image_format_properties: ImageFormatPropertiesNative field imageFormatProperties.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_image_format_properties
Set native field imageFormatProperties 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::ImageLayout
Contract
Open integer representation of VkImageLayout.
Fields
0
0: i32Methods and associated items
UNDEFINED
Native value VK_IMAGE_LAYOUT_UNDEFINED.
GENERAL
Native value VK_IMAGE_LAYOUT_GENERAL.
COLOR_ATTACHMENT_OPTIMAL
Native value VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL.
DEPTH_STENCIL_ATTACHMENT_OPTIMAL
Native value VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL.
Khronos reference: VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL
DEPTH_STENCIL_READ_ONLY_OPTIMAL
Native value VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL.
Khronos reference: VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL
SHADER_READ_ONLY_OPTIMAL
Native value VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL.
TRANSFER_SRC_OPTIMAL
Native value VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL.
TRANSFER_DST_OPTIMAL
Native value VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL.
PREINITIALIZED
Native value VK_IMAGE_LAYOUT_PREINITIALIZED.
DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
Native value VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL.
Khronos reference: VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL
Native value VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL.
Khronos reference: VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL
DEPTH_ATTACHMENT_OPTIMAL
Native value VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL.
DEPTH_READ_ONLY_OPTIMAL
Native value VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL.
STENCIL_ATTACHMENT_OPTIMAL
Native value VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL.
Khronos reference: VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL
STENCIL_READ_ONLY_OPTIMAL
Native value VK_IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL.
Khronos reference: VK_IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL
READ_ONLY_OPTIMAL
Native value VK_IMAGE_LAYOUT_READ_ONLY_OPTIMAL.
ATTACHMENT_OPTIMAL
Native value VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL.
RENDERING_LOCAL_READ
Native value VK_IMAGE_LAYOUT_RENDERING_LOCAL_READ.
PRESENT_SRC_KHR
Native value VK_IMAGE_LAYOUT_PRESENT_SRC_KHR.
VIDEO_DECODE_DST_KHR
Native value VK_IMAGE_LAYOUT_VIDEO_DECODE_DST_KHR.
VIDEO_DECODE_SRC_KHR
Native value VK_IMAGE_LAYOUT_VIDEO_DECODE_SRC_KHR.
VIDEO_DECODE_DPB_KHR
Native value VK_IMAGE_LAYOUT_VIDEO_DECODE_DPB_KHR.
SHARED_PRESENT_KHR
Native value VK_IMAGE_LAYOUT_SHARED_PRESENT_KHR.
DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL_KHR
Native value VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL_KHR.
Khronos reference: VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL_KHR
DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL_KHR
Native value VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL_KHR.
Khronos reference: VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL_KHR
SHADING_RATE_OPTIMAL_NV
Native value VK_IMAGE_LAYOUT_SHADING_RATE_OPTIMAL_NV.
FRAGMENT_DENSITY_MAP_OPTIMAL_EXT
Native value VK_IMAGE_LAYOUT_FRAGMENT_DENSITY_MAP_OPTIMAL_EXT.
Khronos reference: VK_IMAGE_LAYOUT_FRAGMENT_DENSITY_MAP_OPTIMAL_EXT
FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL_KHR
Native value VK_IMAGE_LAYOUT_FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL_KHR.
Khronos reference: VK_IMAGE_LAYOUT_FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL_KHR
RENDERING_LOCAL_READ_KHR
Native value VK_IMAGE_LAYOUT_RENDERING_LOCAL_READ_KHR.
DEPTH_ATTACHMENT_OPTIMAL_KHR
Native value VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL_KHR.
Khronos reference: VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL_KHR
DEPTH_READ_ONLY_OPTIMAL_KHR
Native value VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL_KHR.
Khronos reference: VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL_KHR
STENCIL_ATTACHMENT_OPTIMAL_KHR
Native value VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL_KHR.
Khronos reference: VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL_KHR
STENCIL_READ_ONLY_OPTIMAL_KHR
Native value VK_IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL_KHR.
Khronos reference: VK_IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL_KHR
VIDEO_ENCODE_DST_KHR
Native value VK_IMAGE_LAYOUT_VIDEO_ENCODE_DST_KHR.
VIDEO_ENCODE_SRC_KHR
Native value VK_IMAGE_LAYOUT_VIDEO_ENCODE_SRC_KHR.
VIDEO_ENCODE_DPB_KHR
Native value VK_IMAGE_LAYOUT_VIDEO_ENCODE_DPB_KHR.
READ_ONLY_OPTIMAL_KHR
Native value VK_IMAGE_LAYOUT_READ_ONLY_OPTIMAL_KHR.
ATTACHMENT_OPTIMAL_KHR
Native value VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL_KHR.
ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT
Native value VK_IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT.
Khronos reference: VK_IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT
TENSOR_ALIASING_ARM
Native value VK_IMAGE_LAYOUT_TENSOR_ALIASING_ARM.
VIDEO_ENCODE_QUANTIZATION_MAP_KHR
Native value VK_IMAGE_LAYOUT_VIDEO_ENCODE_QUANTIZATION_MAP_KHR.
Khronos reference: VK_IMAGE_LAYOUT_VIDEO_ENCODE_QUANTIZATION_MAP_KHR
ZERO_INITIALIZED_EXT
Native value VK_IMAGE_LAYOUT_ZERO_INITIALIZED_EXT.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::ImageMemoryBarrier
pub struct ImageMemoryBarrier<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub src_access_mask: AccessFlags,
pub dst_access_mask: AccessFlags,
pub old_layout: ImageLayout,
pub new_layout: ImageLayout,
pub src_queue_family_index: u32,
pub dst_queue_family_index: u32,
pub image: Image,
pub subresource_range: ImageSubresourceRange,
/* private fields */
}Contract
Native structure VkImageMemoryBarrier.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
src_access_mask
src_access_mask: AccessFlagsNative field srcAccessMask.
dst_access_mask
dst_access_mask: AccessFlagsNative field dstAccessMask.
old_layout
old_layout: ImageLayoutNative field oldLayout.
new_layout
new_layout: ImageLayoutNative field newLayout.
src_queue_family_index
src_queue_family_index: u32Native field srcQueueFamilyIndex.
dst_queue_family_index
dst_queue_family_index: u32Native field dstQueueFamilyIndex.
image
image: ImageNative field image.
subresource_range
subresource_range: ImageSubresourceRangeNative field subresourceRange.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_src_access_mask
Set native field srcAccessMask without native effects.
set_dst_access_mask
Set native field dstAccessMask without native effects.
set_old_layout
Set native field oldLayout without native effects.
set_new_layout
Set native field newLayout without native effects.
set_src_queue_family_index
Set native field srcQueueFamilyIndex without native effects.
set_dst_queue_family_index
Set native field dstQueueFamilyIndex without native effects.
set_image
Set native field image without native effects.
set_subresource_range
Set native field subresourceRange 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::ImageMemoryBarrier2
pub struct ImageMemoryBarrier2<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub src_stage_mask: PipelineStageFlags2,
pub src_access_mask: AccessFlags2,
pub dst_stage_mask: PipelineStageFlags2,
pub dst_access_mask: AccessFlags2,
pub old_layout: ImageLayout,
pub new_layout: ImageLayout,
pub src_queue_family_index: u32,
pub dst_queue_family_index: u32,
pub image: Image,
pub subresource_range: ImageSubresourceRange,
/* private fields */
}Contract
Native structure VkImageMemoryBarrier2.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
src_stage_mask
src_stage_mask: PipelineStageFlags2Native field srcStageMask.
src_access_mask
src_access_mask: AccessFlags2Native field srcAccessMask.
dst_stage_mask
dst_stage_mask: PipelineStageFlags2Native field dstStageMask.
dst_access_mask
dst_access_mask: AccessFlags2Native field dstAccessMask.
old_layout
old_layout: ImageLayoutNative field oldLayout.
new_layout
new_layout: ImageLayoutNative field newLayout.
src_queue_family_index
src_queue_family_index: u32Native field srcQueueFamilyIndex.
dst_queue_family_index
dst_queue_family_index: u32Native field dstQueueFamilyIndex.
image
image: ImageNative field image.
subresource_range
subresource_range: ImageSubresourceRangeNative field subresourceRange.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_src_stage_mask
Set native field srcStageMask without native effects.
set_src_access_mask
Set native field srcAccessMask without native effects.
set_dst_stage_mask
Set native field dstStageMask without native effects.
set_dst_access_mask
Set native field dstAccessMask without native effects.
set_old_layout
Set native field oldLayout without native effects.
set_new_layout
Set native field newLayout without native effects.
set_src_queue_family_index
Set native field srcQueueFamilyIndex without native effects.
set_dst_queue_family_index
Set native field dstQueueFamilyIndex without native effects.
set_image
Set native field image without native effects.
set_subresource_range
Set native field subresourceRange 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.