vk · Structs · V9
16 public declarations with native signatures and source-owned contracts.
Stvk::VideoEncodeQualityLevelInfoKHR
Contract
Native structure VkVideoEncodeQualityLevelInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
quality_level
quality_level: u32Native field qualityLevel.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_quality_level
Set native field qualityLevel 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::VideoEncodeQualityLevelPropertiesKHR
Contract
Native structure VkVideoEncodeQualityLevelPropertiesKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
preferred_rate_control_mode
preferred_rate_control_mode: VideoEncodeRateControlModeFlagBitsKHRNative field preferredRateControlMode.
preferred_rate_control_layer_count
preferred_rate_control_layer_count: u32Native field preferredRateControlLayerCount.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_preferred_rate_control_mode
Set native field preferredRateControlMode without native effects.
set_preferred_rate_control_layer_count
Set native field preferredRateControlLayerCount 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::VideoEncodeQuantizationMapCapabilitiesKHR
Contract
Native structure VkVideoEncodeQuantizationMapCapabilitiesKHR.
Khronos reference: VkVideoEncodeQuantizationMapCapabilitiesKHR
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
max_quantization_map_extent
max_quantization_map_extent: Extent2DNative field maxQuantizationMapExtent.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_max_quantization_map_extent
Set native field maxQuantizationMapExtent 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::VideoEncodeQuantizationMapInfoKHR
Contract
Native structure VkVideoEncodeQuantizationMapInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
quantization_map
quantization_map: ImageViewNative field quantizationMap.
quantization_map_extent
quantization_map_extent: Extent2DNative field quantizationMapExtent.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_quantization_map
Set native field quantizationMap without native effects.
set_quantization_map_extent
Set native field quantizationMapExtent 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::VideoEncodeQuantizationMapSessionParametersCreateInfoKHR
Contract
Native structure VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR.
Khronos reference: VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const 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::VideoEncodeRateControlFlagsKHR
Contract
Open integer representation of VkVideoEncodeRateControlFlagsKHR.
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::VideoEncodeRateControlInfoKHR
pub struct VideoEncodeRateControlInfoKHR<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: VideoEncodeRateControlFlagsKHR,
pub rate_control_mode: VideoEncodeRateControlModeFlagBitsKHR,
pub layer_count: u32,
pub p_layers: *const VideoEncodeRateControlLayerInfoKHR<'a>,
pub virtual_buffer_size_in_ms: u32,
pub initial_virtual_buffer_size_in_ms: u32,
/* private fields */
}Contract
Native structure VkVideoEncodeRateControlInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: VideoEncodeRateControlFlagsKHRNative field flags.
rate_control_mode
rate_control_mode: VideoEncodeRateControlModeFlagBitsKHRNative field rateControlMode.
layer_count
layer_count: u32Native field layerCount.
p_layers
p_layers: *const VideoEncodeRateControlLayerInfoKHR<'a>Native field pLayers.
virtual_buffer_size_in_ms
virtual_buffer_size_in_ms: u32Native field virtualBufferSizeInMs.
initial_virtual_buffer_size_in_ms
initial_virtual_buffer_size_in_ms: u32Native field initialVirtualBufferSizeInMs.
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_rate_control_mode
Set native field rateControlMode without native effects.
set_layer_count
Set native count layerCount 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_layers
Borrow pLayers and set checked native count layerCount.
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_virtual_buffer_size_in_ms
Set native field virtualBufferSizeInMs without native effects.
set_initial_virtual_buffer_size_in_ms
Set native field initialVirtualBufferSizeInMs 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::VideoEncodeRateControlLayerInfoKHR
Contract
Native structure VkVideoEncodeRateControlLayerInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
average_bitrate
average_bitrate: u64Native field averageBitrate.
max_bitrate
max_bitrate: u64Native field maxBitrate.
frame_rate_numerator
frame_rate_numerator: u32Native field frameRateNumerator.
frame_rate_denominator
frame_rate_denominator: u32Native field frameRateDenominator.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_average_bitrate
Set native field averageBitrate without native effects.
set_max_bitrate
Set native field maxBitrate without native effects.
set_frame_rate_numerator
Set native field frameRateNumerator without native effects.
set_frame_rate_denominator
Set native field frameRateDenominator 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::VideoEncodeRateControlModeFlagBitsKHR
Contract
Open integer representation of VkVideoEncodeRateControlModeFlagBitsKHR.
Fields
0
0: u32Methods and associated items
DEFAULT_KHR
Native value VK_VIDEO_ENCODE_RATE_CONTROL_MODE_DEFAULT_KHR.
Khronos reference: VK_VIDEO_ENCODE_RATE_CONTROL_MODE_DEFAULT_KHR
DISABLED_BIT_KHR
Native value VK_VIDEO_ENCODE_RATE_CONTROL_MODE_DISABLED_BIT_KHR.
Khronos reference: VK_VIDEO_ENCODE_RATE_CONTROL_MODE_DISABLED_BIT_KHR
CBR_BIT_KHR
Native value VK_VIDEO_ENCODE_RATE_CONTROL_MODE_CBR_BIT_KHR.
Khronos reference: VK_VIDEO_ENCODE_RATE_CONTROL_MODE_CBR_BIT_KHR
VBR_BIT_KHR
Native value VK_VIDEO_ENCODE_RATE_CONTROL_MODE_VBR_BIT_KHR.
Khronos reference: VK_VIDEO_ENCODE_RATE_CONTROL_MODE_VBR_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::VideoEncodeRgbChromaOffsetFlagBitsVALVE
Contract
Open integer representation of VkVideoEncodeRgbChromaOffsetFlagBitsVALVE.
Khronos reference: VkVideoEncodeRgbChromaOffsetFlagBitsVALVE
Fields
0
0: u32Methods and associated items
COSITED_EVEN_BIT_VALVE
Native value VK_VIDEO_ENCODE_RGB_CHROMA_OFFSET_COSITED_EVEN_BIT_VALVE.
Khronos reference: VK_VIDEO_ENCODE_RGB_CHROMA_OFFSET_COSITED_EVEN_BIT_VALVE
MIDPOINT_BIT_VALVE
Native value VK_VIDEO_ENCODE_RGB_CHROMA_OFFSET_MIDPOINT_BIT_VALVE.
Khronos reference: VK_VIDEO_ENCODE_RGB_CHROMA_OFFSET_MIDPOINT_BIT_VALVE
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::VideoEncodeRgbConversionCapabilitiesVALVE
pub struct VideoEncodeRgbConversionCapabilitiesVALVE<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub rgb_models: VideoEncodeRgbModelConversionFlagsVALVE,
pub rgb_ranges: VideoEncodeRgbRangeCompressionFlagsVALVE,
pub x_chroma_offsets: VideoEncodeRgbChromaOffsetFlagsVALVE,
pub y_chroma_offsets: VideoEncodeRgbChromaOffsetFlagsVALVE,
/* private fields */
}Contract
Native structure VkVideoEncodeRgbConversionCapabilitiesVALVE.
Khronos reference: VkVideoEncodeRgbConversionCapabilitiesVALVE
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
rgb_models
rgb_models: VideoEncodeRgbModelConversionFlagsVALVENative field rgbModels.
rgb_ranges
rgb_ranges: VideoEncodeRgbRangeCompressionFlagsVALVENative field rgbRanges.
x_chroma_offsets
x_chroma_offsets: VideoEncodeRgbChromaOffsetFlagsVALVENative field xChromaOffsets.
y_chroma_offsets
y_chroma_offsets: VideoEncodeRgbChromaOffsetFlagsVALVENative field yChromaOffsets.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_rgb_models
Set native field rgbModels without native effects.
set_rgb_ranges
Set native field rgbRanges without native effects.
set_x_chroma_offsets
Set native field xChromaOffsets without native effects.
set_y_chroma_offsets
Set native field yChromaOffsets 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::VideoEncodeRgbModelConversionFlagBitsVALVE
Contract
Open integer representation of VkVideoEncodeRgbModelConversionFlagBitsVALVE.
Khronos reference: VkVideoEncodeRgbModelConversionFlagBitsVALVE
Fields
0
0: u32Methods and associated items
RGB_IDENTITY_BIT_VALVE
Native value VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_RGB_IDENTITY_BIT_VALVE.
Khronos reference: VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_RGB_IDENTITY_BIT_VALVE
YCBCR_IDENTITY_BIT_VALVE
Native value VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_IDENTITY_BIT_VALVE.
Khronos reference: VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_IDENTITY_BIT_VALVE
YCBCR_709_BIT_VALVE
Native value VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_709_BIT_VALVE.
Khronos reference: VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_709_BIT_VALVE
YCBCR_601_BIT_VALVE
Native value VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_601_BIT_VALVE.
Khronos reference: VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_601_BIT_VALVE
YCBCR_2020_BIT_VALVE
Native value VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_2020_BIT_VALVE.
Khronos reference: VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_2020_BIT_VALVE
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::VideoEncodeRgbRangeCompressionFlagBitsVALVE
Contract
Open integer representation of VkVideoEncodeRgbRangeCompressionFlagBitsVALVE.
Khronos reference: VkVideoEncodeRgbRangeCompressionFlagBitsVALVE
Fields
0
0: u32Methods and associated items
FULL_RANGE_BIT_VALVE
Native value VK_VIDEO_ENCODE_RGB_RANGE_COMPRESSION_FULL_RANGE_BIT_VALVE.
Khronos reference: VK_VIDEO_ENCODE_RGB_RANGE_COMPRESSION_FULL_RANGE_BIT_VALVE
NARROW_RANGE_BIT_VALVE
Native value VK_VIDEO_ENCODE_RGB_RANGE_COMPRESSION_NARROW_RANGE_BIT_VALVE.
Khronos reference: VK_VIDEO_ENCODE_RGB_RANGE_COMPRESSION_NARROW_RANGE_BIT_VALVE
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::VideoEncodeSessionIntraRefreshCreateInfoKHR
Contract
Native structure VkVideoEncodeSessionIntraRefreshCreateInfoKHR.
Khronos reference: VkVideoEncodeSessionIntraRefreshCreateInfoKHR
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
intra_refresh_mode
intra_refresh_mode: VideoEncodeIntraRefreshModeFlagBitsKHRNative field intraRefreshMode.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_intra_refresh_mode
Set native field intraRefreshMode 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::VideoEncodeSessionParametersFeedbackInfoKHR
Contract
Native structure VkVideoEncodeSessionParametersFeedbackInfoKHR.
Khronos reference: VkVideoEncodeSessionParametersFeedbackInfoKHR
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
has_overrides
has_overrides: Bool32Native field hasOverrides.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_has_overrides
Set native field hasOverrides 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::VideoEncodeSessionParametersGetInfoKHR
Contract
Native structure VkVideoEncodeSessionParametersGetInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
video_session_parameters
video_session_parameters: VideoSessionParametersKHRNative field videoSessionParameters.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_video_session_parameters
Set native field videoSessionParameters 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.