vk · Structs · V2
16 public declarations with native signatures and source-owned contracts.
Stvk::VideoBeginCodingFlagsKHR
Contract
Open integer representation of VkVideoBeginCodingFlagsKHR.
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::VideoBeginCodingInfoKHR
pub struct VideoBeginCodingInfoKHR<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: VideoBeginCodingFlagsKHR,
pub video_session: VideoSessionKHR,
pub video_session_parameters: VideoSessionParametersKHR,
pub reference_slot_count: u32,
pub p_reference_slots: *const VideoReferenceSlotInfoKHR<'a>,
/* private fields */
}Contract
Native structure VkVideoBeginCodingInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: VideoBeginCodingFlagsKHRNative field flags.
video_session
video_session: VideoSessionKHRNative field videoSession.
video_session_parameters
video_session_parameters: VideoSessionParametersKHRNative field videoSessionParameters.
reference_slot_count
reference_slot_count: u32Native field referenceSlotCount.
p_reference_slots
p_reference_slots: *const VideoReferenceSlotInfoKHR<'a>Native field pReferenceSlots.
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_video_session
Set native field videoSession without native effects.
set_video_session_parameters
Set native field videoSessionParameters without native effects.
set_reference_slot_count
Set native count referenceSlotCount 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_reference_slots
Borrow pReferenceSlots and set checked native count referenceSlotCount.
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::VideoCapabilitiesKHR
pub struct VideoCapabilitiesKHR<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub flags: VideoCapabilityFlagsKHR,
pub min_bitstream_buffer_offset_alignment: DeviceSize,
pub min_bitstream_buffer_size_alignment: DeviceSize,
pub picture_access_granularity: Extent2D,
pub min_coded_extent: Extent2D,
pub max_coded_extent: Extent2D,
pub max_dpb_slots: u32,
pub max_active_reference_pictures: u32,
pub std_header_version: ExtensionProperties,
/* private fields */
}Contract
Native structure VkVideoCapabilitiesKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
flags
flags: VideoCapabilityFlagsKHRNative field flags.
min_bitstream_buffer_offset_alignment
min_bitstream_buffer_offset_alignment: DeviceSizeNative field minBitstreamBufferOffsetAlignment.
min_bitstream_buffer_size_alignment
min_bitstream_buffer_size_alignment: DeviceSizeNative field minBitstreamBufferSizeAlignment.
picture_access_granularity
picture_access_granularity: Extent2DNative field pictureAccessGranularity.
min_coded_extent
min_coded_extent: Extent2DNative field minCodedExtent.
max_coded_extent
max_coded_extent: Extent2DNative field maxCodedExtent.
max_dpb_slots
max_dpb_slots: u32Native field maxDpbSlots.
max_active_reference_pictures
max_active_reference_pictures: u32Native field maxActiveReferencePictures.
std_header_version
std_header_version: ExtensionPropertiesNative field stdHeaderVersion.
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_min_bitstream_buffer_offset_alignment
Set native field minBitstreamBufferOffsetAlignment without native effects.
set_min_bitstream_buffer_size_alignment
Set native field minBitstreamBufferSizeAlignment without native effects.
set_picture_access_granularity
Set native field pictureAccessGranularity without native effects.
set_min_coded_extent
Set native field minCodedExtent without native effects.
set_max_coded_extent
Set native field maxCodedExtent without native effects.
set_max_dpb_slots
Set native field maxDpbSlots without native effects.
set_max_active_reference_pictures
Set native field maxActiveReferencePictures without native effects.
set_std_header_version
Set native field stdHeaderVersion 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::VideoCapabilityFlagBitsKHR
Contract
Open integer representation of VkVideoCapabilityFlagBitsKHR.
Fields
0
0: u32Methods and associated items
PROTECTED_CONTENT_BIT_KHR
Native value VK_VIDEO_CAPABILITY_PROTECTED_CONTENT_BIT_KHR.
Khronos reference: VK_VIDEO_CAPABILITY_PROTECTED_CONTENT_BIT_KHR
SEPARATE_REFERENCE_IMAGES_BIT_KHR
Native value VK_VIDEO_CAPABILITY_SEPARATE_REFERENCE_IMAGES_BIT_KHR.
Khronos reference: VK_VIDEO_CAPABILITY_SEPARATE_REFERENCE_IMAGES_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::VideoChromaSubsamplingFlagBitsKHR
Contract
Open integer representation of VkVideoChromaSubsamplingFlagBitsKHR.
Fields
0
0: u32Methods and associated items
INVALID_KHR
Native value VK_VIDEO_CHROMA_SUBSAMPLING_INVALID_KHR.
MONOCHROME_BIT_KHR
Native value VK_VIDEO_CHROMA_SUBSAMPLING_MONOCHROME_BIT_KHR.
Khronos reference: VK_VIDEO_CHROMA_SUBSAMPLING_MONOCHROME_BIT_KHR
_420_BIT_KHR
Native value VK_VIDEO_CHROMA_SUBSAMPLING_420_BIT_KHR.
_422_BIT_KHR
Native value VK_VIDEO_CHROMA_SUBSAMPLING_422_BIT_KHR.
_444_BIT_KHR
Native value VK_VIDEO_CHROMA_SUBSAMPLING_444_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::VideoCodecOperationFlagBitsKHR
Contract
Open integer representation of VkVideoCodecOperationFlagBitsKHR.
Fields
0
0: u32Methods and associated items
NONE_KHR
Native value VK_VIDEO_CODEC_OPERATION_NONE_KHR.
ENCODE_H264_BIT_KHR
Native value VK_VIDEO_CODEC_OPERATION_ENCODE_H264_BIT_KHR.
Khronos reference: VK_VIDEO_CODEC_OPERATION_ENCODE_H264_BIT_KHR
ENCODE_H265_BIT_KHR
Native value VK_VIDEO_CODEC_OPERATION_ENCODE_H265_BIT_KHR.
Khronos reference: VK_VIDEO_CODEC_OPERATION_ENCODE_H265_BIT_KHR
DECODE_H264_BIT_KHR
Native value VK_VIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR.
Khronos reference: VK_VIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR
DECODE_H265_BIT_KHR
Native value VK_VIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR.
Khronos reference: VK_VIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR
DECODE_AV1_BIT_KHR
Native value VK_VIDEO_CODEC_OPERATION_DECODE_AV1_BIT_KHR.
Khronos reference: VK_VIDEO_CODEC_OPERATION_DECODE_AV1_BIT_KHR
ENCODE_AV1_BIT_KHR
Native value VK_VIDEO_CODEC_OPERATION_ENCODE_AV1_BIT_KHR.
Khronos reference: VK_VIDEO_CODEC_OPERATION_ENCODE_AV1_BIT_KHR
DECODE_VP9_BIT_KHR
Native value VK_VIDEO_CODEC_OPERATION_DECODE_VP9_BIT_KHR.
Khronos reference: VK_VIDEO_CODEC_OPERATION_DECODE_VP9_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::VideoCodingControlFlagBitsKHR
Contract
Open integer representation of VkVideoCodingControlFlagBitsKHR.
Fields
0
0: u32Methods and associated items
RESET_BIT_KHR
Native value VK_VIDEO_CODING_CONTROL_RESET_BIT_KHR.
ENCODE_RATE_CONTROL_BIT_KHR
Native value VK_VIDEO_CODING_CONTROL_ENCODE_RATE_CONTROL_BIT_KHR.
Khronos reference: VK_VIDEO_CODING_CONTROL_ENCODE_RATE_CONTROL_BIT_KHR
ENCODE_QUALITY_LEVEL_BIT_KHR
Native value VK_VIDEO_CODING_CONTROL_ENCODE_QUALITY_LEVEL_BIT_KHR.
Khronos reference: VK_VIDEO_CODING_CONTROL_ENCODE_QUALITY_LEVEL_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::VideoCodingControlInfoKHR
Contract
Native structure VkVideoCodingControlInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: VideoCodingControlFlagsKHRNative 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::VideoComponentBitDepthFlagBitsKHR
Contract
Open integer representation of VkVideoComponentBitDepthFlagBitsKHR.
Fields
0
0: u32Methods and associated items
INVALID_KHR
Native value VK_VIDEO_COMPONENT_BIT_DEPTH_INVALID_KHR.
_8_BIT_KHR
Native value VK_VIDEO_COMPONENT_BIT_DEPTH_8_BIT_KHR.
_10_BIT_KHR
Native value VK_VIDEO_COMPONENT_BIT_DEPTH_10_BIT_KHR.
_12_BIT_KHR
Native value VK_VIDEO_COMPONENT_BIT_DEPTH_12_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::VideoDecodeAV1CapabilitiesKHR
Contract
Native structure VkVideoDecodeAV1CapabilitiesKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
max_level
max_level: StdVideoAV1LevelNative field maxLevel.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_max_level
Set native field maxLevel 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::VideoDecodeAV1DpbSlotInfoKHR
Contract
Native structure VkVideoDecodeAV1DpbSlotInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
p_std_reference_info
p_std_reference_info: *const StdVideoDecodeAV1ReferenceInfoNative field pStdReferenceInfo.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_std_reference_info
Set native field pStdReferenceInfo 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::VideoDecodeAV1InlineSessionParametersInfoKHR
Contract
Native structure VkVideoDecodeAV1InlineSessionParametersInfoKHR.
Khronos reference: VkVideoDecodeAV1InlineSessionParametersInfoKHR
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
p_std_sequence_header
p_std_sequence_header: *const StdVideoAV1SequenceHeader<'a>Native field pStdSequenceHeader.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_std_sequence_header
Set native field pStdSequenceHeader 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::VideoDecodeAV1PictureInfoKHR
pub struct VideoDecodeAV1PictureInfoKHR<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub p_std_picture_info: *const StdVideoDecodeAV1PictureInfo<'a>,
pub reference_name_slot_indices: [i32; 7],
pub frame_header_offset: u32,
pub tile_count: u32,
pub p_tile_offsets: *const u32,
pub p_tile_sizes: *const u32,
/* private fields */
}Contract
Native structure VkVideoDecodeAV1PictureInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
p_std_picture_info
p_std_picture_info: *const StdVideoDecodeAV1PictureInfo<'a>Native field pStdPictureInfo.
reference_name_slot_indices
reference_name_slot_indices: [i32; 7]Native field referenceNameSlotIndices.
frame_header_offset
frame_header_offset: u32Native field frameHeaderOffset.
tile_count
tile_count: u32Native field tileCount.
p_tile_offsets
p_tile_offsets: *const u32Native field pTileOffsets.
p_tile_sizes
p_tile_sizes: *const u32Native field pTileSizes.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_std_picture_info
Set native field pStdPictureInfo without native effects.
set_reference_name_slot_indices
Set native field referenceNameSlotIndices without native effects.
set_frame_header_offset
Set native field frameHeaderOffset without native effects.
set_tile_count
Set native count tileCount 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_tile_offsets
Borrow parallel arrays sharing native tileCount. Optional arrays may be null.
Mutable arrays retain exclusive borrows of initialized output storage.
This checks lengths only; native valid usage and later raw edits remain caller obligations.
Errors
Returns a construction error for unequal lengths or native count overflow.
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::VideoDecodeAV1ProfileInfoKHR
Contract
Native structure VkVideoDecodeAV1ProfileInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
std_profile
std_profile: StdVideoAV1ProfileNative field stdProfile.
film_grain_support
film_grain_support: Bool32Native field filmGrainSupport.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_std_profile
Set native field stdProfile without native effects.
set_film_grain_support
Set native field filmGrainSupport 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::VideoDecodeAV1SessionParametersCreateInfoKHR
Contract
Native structure VkVideoDecodeAV1SessionParametersCreateInfoKHR.
Khronos reference: VkVideoDecodeAV1SessionParametersCreateInfoKHR
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
p_std_sequence_header
p_std_sequence_header: *const StdVideoAV1SequenceHeader<'a>Native field pStdSequenceHeader.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_std_sequence_header
Set native field pStdSequenceHeader 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::VideoDecodeCapabilitiesKHR
Contract
Native structure VkVideoDecodeCapabilitiesKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
flags
flags: VideoDecodeCapabilityFlagsKHRNative 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.