vk · Structs · I1
16 public declarations with native signatures and source-owned contracts.
Stvk::IDirectFB
Contract
Native type IDirectFB.
Stvk::IDirectFBSurface
Contract
Native type IDirectFBSurface.
Stvk::Image
Contract
Raw Vulkan handle VkImage.
Khronos reference: VkImage
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::ImageAlignmentControlCreateInfoMESA
Contract
Native structure VkImageAlignmentControlCreateInfoMESA.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
maximum_requested_alignment
maximum_requested_alignment: u32Native field maximumRequestedAlignment.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_maximum_requested_alignment
Set native field maximumRequestedAlignment 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::ImageAspectFlagBits
Contract
Open integer representation of VkImageAspectFlagBits.
Fields
0
0: u32Methods and associated items
COLOR_BIT
Native value VK_IMAGE_ASPECT_COLOR_BIT.
DEPTH_BIT
Native value VK_IMAGE_ASPECT_DEPTH_BIT.
STENCIL_BIT
Native value VK_IMAGE_ASPECT_STENCIL_BIT.
METADATA_BIT
Native value VK_IMAGE_ASPECT_METADATA_BIT.
PLANE_0_BIT
Native value VK_IMAGE_ASPECT_PLANE_0_BIT.
PLANE_1_BIT
Native value VK_IMAGE_ASPECT_PLANE_1_BIT.
PLANE_2_BIT
Native value VK_IMAGE_ASPECT_PLANE_2_BIT.
NONE
Native value VK_IMAGE_ASPECT_NONE.
PLANE_0_BIT_KHR
Native value VK_IMAGE_ASPECT_PLANE_0_BIT_KHR.
PLANE_1_BIT_KHR
Native value VK_IMAGE_ASPECT_PLANE_1_BIT_KHR.
PLANE_2_BIT_KHR
Native value VK_IMAGE_ASPECT_PLANE_2_BIT_KHR.
MEMORY_PLANE_0_BIT_EXT
Native value VK_IMAGE_ASPECT_MEMORY_PLANE_0_BIT_EXT.
MEMORY_PLANE_1_BIT_EXT
Native value VK_IMAGE_ASPECT_MEMORY_PLANE_1_BIT_EXT.
MEMORY_PLANE_2_BIT_EXT
Native value VK_IMAGE_ASPECT_MEMORY_PLANE_2_BIT_EXT.
MEMORY_PLANE_3_BIT_EXT
Native value VK_IMAGE_ASPECT_MEMORY_PLANE_3_BIT_EXT.
NONE_KHR
Native value VK_IMAGE_ASPECT_NONE_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::ImageBlit
Contract
Native structure VkImageBlit.
Fields
src_subresource
src_subresource: ImageSubresourceLayersNative field srcSubresource.
src_offsets
src_offsets: [Offset3D; 2]Native field srcOffsets.
dst_subresource
dst_subresource: ImageSubresourceLayersNative field dstSubresource.
dst_offsets
dst_offsets: [Offset3D; 2]Native field dstOffsets.
Methods and associated items
new
Construct the record with its default native state.
set_src_subresource
Set native field srcSubresource without native effects.
set_src_offsets
Set native field srcOffsets without native effects.
set_dst_subresource
Set native field dstSubresource without native effects.
set_dst_offsets
Set native field dstOffsets without native effects.
clone
default
Stvk::ImageBlit2
Contract
Native structure VkImageBlit2.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
src_subresource
src_subresource: ImageSubresourceLayersNative field srcSubresource.
src_offsets
src_offsets: [Offset3D; 2]Native field srcOffsets.
dst_subresource
dst_subresource: ImageSubresourceLayersNative field dstSubresource.
dst_offsets
dst_offsets: [Offset3D; 2]Native field dstOffsets.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_src_subresource
Set native field srcSubresource without native effects.
set_src_offsets
Set native field srcOffsets without native effects.
set_dst_subresource
Set native field dstSubresource without native effects.
set_dst_offsets
Set native field dstOffsets 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::ImageCaptureDescriptorDataInfoEXT
Contract
Native structure VkImageCaptureDescriptorDataInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
image
image: ImageNative field image.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_image
Set native field image 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::ImageCompressionControlEXT
Contract
Native structure VkImageCompressionControlEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: ImageCompressionFlagsEXTNative field flags.
compression_control_plane_count
compression_control_plane_count: u32Native field compressionControlPlaneCount.
p_fixed_rate_flags
p_fixed_rate_flags: *mut ImageCompressionFixedRateFlagsEXTNative field pFixedRateFlags.
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_compression_control_plane_count
Set native count compressionControlPlaneCount 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_fixed_rate_flags
Borrow pFixedRateFlags and set checked native count compressionControlPlaneCount.
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::ImageCompressionFixedRateFlagBitsEXT
Contract
Open integer representation of VkImageCompressionFixedRateFlagBitsEXT.
Fields
0
0: u32Methods and associated items
NONE_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_NONE_EXT.
_1BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXT
_2BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT
_3BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXT
_4BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT
_5BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXT
_6BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXT
_7BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXT
_8BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXT
_9BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXT
_10BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXT
_11BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXT
_12BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXT
_13BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXT
_14BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXT
_15BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXT
_16BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXT
_17BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXT
_18BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXT
_19BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXT
_20BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXT
_21BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXT
_22BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXT
_23BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXT
_24BPC_BIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_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::ImageCompressionFlagBitsEXT
Contract
Open integer representation of VkImageCompressionFlagBitsEXT.
Fields
0
0: u32Methods and associated items
DEFAULT_EXT
Native value VK_IMAGE_COMPRESSION_DEFAULT_EXT.
FIXED_RATE_DEFAULT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_DEFAULT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_DEFAULT_EXT
FIXED_RATE_EXPLICIT_EXT
Native value VK_IMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT.
Khronos reference: VK_IMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT
DISABLED_EXT
Native value VK_IMAGE_COMPRESSION_DISABLED_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::ImageCompressionPropertiesEXT
Contract
Native structure VkImageCompressionPropertiesEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
image_compression_flags
image_compression_flags: ImageCompressionFlagsEXTNative field imageCompressionFlags.
image_compression_fixed_rate_flags
image_compression_fixed_rate_flags: ImageCompressionFixedRateFlagsEXTNative field imageCompressionFixedRateFlags.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_image_compression_flags
Set native field imageCompressionFlags without native effects.
set_image_compression_fixed_rate_flags
Set native field imageCompressionFixedRateFlags 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::ImageConstraintsInfoFlagBitsFUCHSIA
Contract
Open integer representation of VkImageConstraintsInfoFlagBitsFUCHSIA.
Fields
0
0: u32Methods and associated items
CPU_READ_RARELY_FUCHSIA
Native value VK_IMAGE_CONSTRAINTS_INFO_CPU_READ_RARELY_FUCHSIA.
Khronos reference: VK_IMAGE_CONSTRAINTS_INFO_CPU_READ_RARELY_FUCHSIA
CPU_READ_OFTEN_FUCHSIA
Native value VK_IMAGE_CONSTRAINTS_INFO_CPU_READ_OFTEN_FUCHSIA.
Khronos reference: VK_IMAGE_CONSTRAINTS_INFO_CPU_READ_OFTEN_FUCHSIA
CPU_WRITE_RARELY_FUCHSIA
Native value VK_IMAGE_CONSTRAINTS_INFO_CPU_WRITE_RARELY_FUCHSIA.
Khronos reference: VK_IMAGE_CONSTRAINTS_INFO_CPU_WRITE_RARELY_FUCHSIA
CPU_WRITE_OFTEN_FUCHSIA
Native value VK_IMAGE_CONSTRAINTS_INFO_CPU_WRITE_OFTEN_FUCHSIA.
Khronos reference: VK_IMAGE_CONSTRAINTS_INFO_CPU_WRITE_OFTEN_FUCHSIA
PROTECTED_OPTIONAL_FUCHSIA
Native value VK_IMAGE_CONSTRAINTS_INFO_PROTECTED_OPTIONAL_FUCHSIA.
Khronos reference: VK_IMAGE_CONSTRAINTS_INFO_PROTECTED_OPTIONAL_FUCHSIA
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::ImageConstraintsInfoFUCHSIA
pub struct ImageConstraintsInfoFUCHSIA<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub format_constraints_count: u32,
pub p_format_constraints: *const ImageFormatConstraintsInfoFUCHSIA<'a>,
pub buffer_collection_constraints: BufferCollectionConstraintsInfoFUCHSIA<'a>,
pub flags: ImageConstraintsInfoFlagsFUCHSIA,
/* private fields */
}Contract
Native structure VkImageConstraintsInfoFUCHSIA.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
format_constraints_count
format_constraints_count: u32Native field formatConstraintsCount.
p_format_constraints
p_format_constraints: *const ImageFormatConstraintsInfoFUCHSIA<'a>Native field pFormatConstraints.
buffer_collection_constraints
buffer_collection_constraints: BufferCollectionConstraintsInfoFUCHSIA<'a>Native field bufferCollectionConstraints.
flags
flags: ImageConstraintsInfoFlagsFUCHSIANative field flags.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_format_constraints_count
Set native count formatConstraintsCount 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_format_constraints
Borrow pFormatConstraints and set checked native count formatConstraintsCount.
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_buffer_collection_constraints
Set native field bufferCollectionConstraints 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::ImageCopy
Contract
Native structure VkImageCopy.
Fields
src_subresource
src_subresource: ImageSubresourceLayersNative field srcSubresource.
src_offset
src_offset: Offset3DNative field srcOffset.
dst_subresource
dst_subresource: ImageSubresourceLayersNative field dstSubresource.
dst_offset
dst_offset: Offset3DNative field dstOffset.
extent
extent: Extent3DNative field extent.
Methods and associated items
new
Construct the record with its default native state.
set_src_subresource
Set native field srcSubresource without native effects.
set_src_offset
Set native field srcOffset without native effects.
set_dst_subresource
Set native field dstSubresource without native effects.
set_dst_offset
Set native field dstOffset without native effects.
set_extent
Set native field extent without native effects.
clone
default
Stvk::ImageCopy2
Contract
Native structure VkImageCopy2.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
src_subresource
src_subresource: ImageSubresourceLayersNative field srcSubresource.
src_offset
src_offset: Offset3DNative field srcOffset.
dst_subresource
dst_subresource: ImageSubresourceLayersNative field dstSubresource.
dst_offset
dst_offset: Offset3DNative field dstOffset.
extent
extent: Extent3DNative field extent.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_src_subresource
Set native field srcSubresource without native effects.
set_src_offset
Set native field srcOffset without native effects.
set_dst_subresource
Set native field dstSubresource without native effects.
set_dst_offset
Set native field dstOffset without native effects.
set_extent
Set native field extent 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.