vk · Structs · V10
16 public declarations with native signatures and source-owned contracts.
Stvk::VideoEncodeSessionRgbConversionCreateInfoVALVE
pub struct VideoEncodeSessionRgbConversionCreateInfoVALVE<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub rgb_model: VideoEncodeRgbModelConversionFlagBitsVALVE,
pub rgb_range: VideoEncodeRgbRangeCompressionFlagBitsVALVE,
pub x_chroma_offset: VideoEncodeRgbChromaOffsetFlagBitsVALVE,
pub y_chroma_offset: VideoEncodeRgbChromaOffsetFlagBitsVALVE,
/* private fields */
}Contract
Native structure VkVideoEncodeSessionRgbConversionCreateInfoVALVE.
Khronos reference: VkVideoEncodeSessionRgbConversionCreateInfoVALVE
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
rgb_model
rgb_model: VideoEncodeRgbModelConversionFlagBitsVALVENative field rgbModel.
rgb_range
rgb_range: VideoEncodeRgbRangeCompressionFlagBitsVALVENative field rgbRange.
x_chroma_offset
x_chroma_offset: VideoEncodeRgbChromaOffsetFlagBitsVALVENative field xChromaOffset.
y_chroma_offset
y_chroma_offset: VideoEncodeRgbChromaOffsetFlagBitsVALVENative field yChromaOffset.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_rgb_model
Set native field rgbModel without native effects.
set_rgb_range
Set native field rgbRange without native effects.
set_x_chroma_offset
Set native field xChromaOffset without native effects.
set_y_chroma_offset
Set native field yChromaOffset 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::VideoEncodeTuningModeKHR
Contract
Open integer representation of VkVideoEncodeTuningModeKHR.
Fields
0
0: i32Methods and associated items
DEFAULT_KHR
Native value VK_VIDEO_ENCODE_TUNING_MODE_DEFAULT_KHR.
HIGH_QUALITY_KHR
Native value VK_VIDEO_ENCODE_TUNING_MODE_HIGH_QUALITY_KHR.
Khronos reference: VK_VIDEO_ENCODE_TUNING_MODE_HIGH_QUALITY_KHR
LOW_LATENCY_KHR
Native value VK_VIDEO_ENCODE_TUNING_MODE_LOW_LATENCY_KHR.
Khronos reference: VK_VIDEO_ENCODE_TUNING_MODE_LOW_LATENCY_KHR
ULTRA_LOW_LATENCY_KHR
Native value VK_VIDEO_ENCODE_TUNING_MODE_ULTRA_LOW_LATENCY_KHR.
Khronos reference: VK_VIDEO_ENCODE_TUNING_MODE_ULTRA_LOW_LATENCY_KHR
LOSSLESS_KHR
Native value VK_VIDEO_ENCODE_TUNING_MODE_LOSSLESS_KHR.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::VideoEncodeUsageFlagBitsKHR
Contract
Open integer representation of VkVideoEncodeUsageFlagBitsKHR.
Fields
0
0: u32Methods and associated items
DEFAULT_KHR
Native value VK_VIDEO_ENCODE_USAGE_DEFAULT_KHR.
TRANSCODING_BIT_KHR
Native value VK_VIDEO_ENCODE_USAGE_TRANSCODING_BIT_KHR.
Khronos reference: VK_VIDEO_ENCODE_USAGE_TRANSCODING_BIT_KHR
STREAMING_BIT_KHR
Native value VK_VIDEO_ENCODE_USAGE_STREAMING_BIT_KHR.
RECORDING_BIT_KHR
Native value VK_VIDEO_ENCODE_USAGE_RECORDING_BIT_KHR.
CONFERENCING_BIT_KHR
Native value VK_VIDEO_ENCODE_USAGE_CONFERENCING_BIT_KHR.
Khronos reference: VK_VIDEO_ENCODE_USAGE_CONFERENCING_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::VideoEncodeUsageInfoKHR
Contract
Native structure VkVideoEncodeUsageInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
video_usage_hints
video_usage_hints: VideoEncodeUsageFlagsKHRNative field videoUsageHints.
video_content_hints
video_content_hints: VideoEncodeContentFlagsKHRNative field videoContentHints.
tuning_mode
tuning_mode: VideoEncodeTuningModeKHRNative field tuningMode.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_video_usage_hints
Set native field videoUsageHints without native effects.
set_video_content_hints
Set native field videoContentHints without native effects.
set_tuning_mode
Set native field tuningMode 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::VideoEndCodingFlagsKHR
Contract
Open integer representation of VkVideoEndCodingFlagsKHR.
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::VideoEndCodingInfoKHR
Contract
Native structure VkVideoEndCodingInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: VideoEndCodingFlagsKHRNative 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::VideoFormatAV1QuantizationMapPropertiesKHR
Contract
Native structure VkVideoFormatAV1QuantizationMapPropertiesKHR.
Khronos reference: VkVideoFormatAV1QuantizationMapPropertiesKHR
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
compatible_superblock_sizes
compatible_superblock_sizes: VideoEncodeAV1SuperblockSizeFlagsKHRNative field compatibleSuperblockSizes.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_compatible_superblock_sizes
Set native field compatibleSuperblockSizes 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::VideoFormatH265QuantizationMapPropertiesKHR
Contract
Native structure VkVideoFormatH265QuantizationMapPropertiesKHR.
Khronos reference: VkVideoFormatH265QuantizationMapPropertiesKHR
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
compatible_ctb_sizes
compatible_ctb_sizes: VideoEncodeH265CtbSizeFlagsKHRNative field compatibleCtbSizes.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_compatible_ctb_sizes
Set native field compatibleCtbSizes 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::VideoFormatPropertiesKHR
pub struct VideoFormatPropertiesKHR<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub format: Format,
pub component_mapping: ComponentMapping,
pub image_create_flags: ImageCreateFlags,
pub image_type: ImageType,
pub image_tiling: ImageTiling,
pub image_usage_flags: ImageUsageFlags,
/* private fields */
}Contract
Native structure VkVideoFormatPropertiesKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
format
format: FormatNative field format.
component_mapping
component_mapping: ComponentMappingNative field componentMapping.
image_create_flags
image_create_flags: ImageCreateFlagsNative field imageCreateFlags.
image_type
image_type: ImageTypeNative field imageType.
image_tiling
image_tiling: ImageTilingNative field imageTiling.
image_usage_flags
image_usage_flags: ImageUsageFlagsNative field imageUsageFlags.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_format
Set native field format without native effects.
set_component_mapping
Set native field componentMapping without native effects.
set_image_create_flags
Set native field imageCreateFlags without native effects.
set_image_type
Set native field imageType without native effects.
set_image_tiling
Set native field imageTiling without native effects.
set_image_usage_flags
Set native field imageUsageFlags 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::VideoFormatQuantizationMapPropertiesKHR
Contract
Native structure VkVideoFormatQuantizationMapPropertiesKHR.
Khronos reference: VkVideoFormatQuantizationMapPropertiesKHR
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
quantization_map_texel_size
quantization_map_texel_size: Extent2DNative field quantizationMapTexelSize.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_quantization_map_texel_size
Set native field quantizationMapTexelSize 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::VideoInlineQueryInfoKHR
Contract
Native structure VkVideoInlineQueryInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
query_pool
query_pool: QueryPoolNative field queryPool.
first_query
first_query: u32Native field firstQuery.
query_count
query_count: u32Native field queryCount.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_query_pool
Set native field queryPool without native effects.
set_first_query
Set native field firstQuery without native effects.
set_query_count
Set native field queryCount 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::VideoPictureResourceInfoKHR
Contract
Native structure VkVideoPictureResourceInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
coded_offset
coded_offset: Offset2DNative field codedOffset.
coded_extent
coded_extent: Extent2DNative field codedExtent.
base_array_layer
base_array_layer: u32Native field baseArrayLayer.
image_view_binding
image_view_binding: ImageViewNative field imageViewBinding.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_coded_offset
Set native field codedOffset without native effects.
set_coded_extent
Set native field codedExtent without native effects.
set_base_array_layer
Set native field baseArrayLayer without native effects.
set_image_view_binding
Set native field imageViewBinding 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::VideoProfileInfoKHR
pub struct VideoProfileInfoKHR<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub video_codec_operation: VideoCodecOperationFlagBitsKHR,
pub chroma_subsampling: VideoChromaSubsamplingFlagsKHR,
pub luma_bit_depth: VideoComponentBitDepthFlagsKHR,
pub chroma_bit_depth: VideoComponentBitDepthFlagsKHR,
/* private fields */
}Contract
Native structure VkVideoProfileInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
video_codec_operation
video_codec_operation: VideoCodecOperationFlagBitsKHRNative field videoCodecOperation.
chroma_subsampling
chroma_subsampling: VideoChromaSubsamplingFlagsKHRNative field chromaSubsampling.
luma_bit_depth
luma_bit_depth: VideoComponentBitDepthFlagsKHRNative field lumaBitDepth.
chroma_bit_depth
chroma_bit_depth: VideoComponentBitDepthFlagsKHRNative field chromaBitDepth.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_video_codec_operation
Set native field videoCodecOperation without native effects.
set_chroma_subsampling
Set native field chromaSubsampling without native effects.
set_luma_bit_depth
Set native field lumaBitDepth without native effects.
set_chroma_bit_depth
Set native field chromaBitDepth 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::VideoProfileListInfoKHR
Contract
Native structure VkVideoProfileListInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
profile_count
profile_count: u32Native field profileCount.
p_profiles
p_profiles: *const VideoProfileInfoKHR<'a>Native field pProfiles.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_profile_count
Set native count profileCount 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_profiles
Borrow pProfiles and set checked native count profileCount.
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::VideoReferenceIntraRefreshInfoKHR
Contract
Native structure VkVideoReferenceIntraRefreshInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
dirty_intra_refresh_regions
dirty_intra_refresh_regions: u32Native field dirtyIntraRefreshRegions.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_dirty_intra_refresh_regions
Set native field dirtyIntraRefreshRegions 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::VideoReferenceSlotInfoKHR
Contract
Native structure VkVideoReferenceSlotInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
slot_index
slot_index: i32Native field slotIndex.
p_picture_resource
p_picture_resource: *const VideoPictureResourceInfoKHR<'a>Native field pPictureResource.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_slot_index
Set native field slotIndex without native effects.
set_picture_resource
Set native field pPictureResource 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.