vk · Structs · V11
14 public declarations with native signatures and source-owned contracts.
Stvk::VideoSessionCreateFlagBitsKHR
Contract
Open integer representation of VkVideoSessionCreateFlagBitsKHR.
Fields
0
0: u32Methods and associated items
PROTECTED_CONTENT_BIT_KHR
Native value VK_VIDEO_SESSION_CREATE_PROTECTED_CONTENT_BIT_KHR.
Khronos reference: VK_VIDEO_SESSION_CREATE_PROTECTED_CONTENT_BIT_KHR
ALLOW_ENCODE_PARAMETER_OPTIMIZATIONS_BIT_KHR
Native value VK_VIDEO_SESSION_CREATE_ALLOW_ENCODE_PARAMETER_OPTIMIZATIONS_BIT_KHR.
Khronos reference: VK_VIDEO_SESSION_CREATE_ALLOW_ENCODE_PARAMETER_OPTIMIZATIONS_BIT_KHR
INLINE_QUERIES_BIT_KHR
Native value VK_VIDEO_SESSION_CREATE_INLINE_QUERIES_BIT_KHR.
Khronos reference: VK_VIDEO_SESSION_CREATE_INLINE_QUERIES_BIT_KHR
ALLOW_ENCODE_QUANTIZATION_DELTA_MAP_BIT_KHR
Native value VK_VIDEO_SESSION_CREATE_ALLOW_ENCODE_QUANTIZATION_DELTA_MAP_BIT_KHR.
Khronos reference: VK_VIDEO_SESSION_CREATE_ALLOW_ENCODE_QUANTIZATION_DELTA_MAP_BIT_KHR
ALLOW_ENCODE_EMPHASIS_MAP_BIT_KHR
Native value VK_VIDEO_SESSION_CREATE_ALLOW_ENCODE_EMPHASIS_MAP_BIT_KHR.
Khronos reference: VK_VIDEO_SESSION_CREATE_ALLOW_ENCODE_EMPHASIS_MAP_BIT_KHR
INLINE_SESSION_PARAMETERS_BIT_KHR
Native value VK_VIDEO_SESSION_CREATE_INLINE_SESSION_PARAMETERS_BIT_KHR.
Khronos reference: VK_VIDEO_SESSION_CREATE_INLINE_SESSION_PARAMETERS_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::VideoSessionCreateInfoKHR
pub struct VideoSessionCreateInfoKHR<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub queue_family_index: u32,
pub flags: VideoSessionCreateFlagsKHR,
pub p_video_profile: *const VideoProfileInfoKHR<'a>,
pub picture_format: Format,
pub max_coded_extent: Extent2D,
pub reference_picture_format: Format,
pub max_dpb_slots: u32,
pub max_active_reference_pictures: u32,
pub p_std_header_version: *const ExtensionProperties,
/* private fields */
}Contract
Native structure VkVideoSessionCreateInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
queue_family_index
queue_family_index: u32Native field queueFamilyIndex.
flags
flags: VideoSessionCreateFlagsKHRNative field flags.
p_video_profile
p_video_profile: *const VideoProfileInfoKHR<'a>Native field pVideoProfile.
picture_format
picture_format: FormatNative field pictureFormat.
max_coded_extent
max_coded_extent: Extent2DNative field maxCodedExtent.
reference_picture_format
reference_picture_format: FormatNative field referencePictureFormat.
max_dpb_slots
max_dpb_slots: u32Native field maxDpbSlots.
max_active_reference_pictures
max_active_reference_pictures: u32Native field maxActiveReferencePictures.
p_std_header_version
p_std_header_version: *const ExtensionPropertiesNative field pStdHeaderVersion.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_queue_family_index
Set native field queueFamilyIndex without native effects.
set_flags
Set native field flags without native effects.
set_video_profile
Set native field pVideoProfile without native effects.
set_picture_format
Set native field pictureFormat without native effects.
set_max_coded_extent
Set native field maxCodedExtent without native effects.
set_reference_picture_format
Set native field referencePictureFormat 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 pStdHeaderVersion 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::VideoSessionKHR
Contract
Raw Vulkan handle VkVideoSessionKHR.
Khronos reference: VkVideoSessionKHR
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::VideoSessionMemoryRequirementsKHR
Contract
Native structure VkVideoSessionMemoryRequirementsKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
memory_bind_index
memory_bind_index: u32Native field memoryBindIndex.
memory_requirements
memory_requirements: MemoryRequirementsNative field memoryRequirements.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_memory_bind_index
Set native field memoryBindIndex without native effects.
set_memory_requirements
Set native field memoryRequirements 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::VideoSessionParametersCreateFlagBitsKHR
Contract
Open integer representation of VkVideoSessionParametersCreateFlagBitsKHR.
Khronos reference: VkVideoSessionParametersCreateFlagBitsKHR
Fields
0
0: u32Methods and associated items
QUANTIZATION_MAP_COMPATIBLE_BIT_KHR
Native value VK_VIDEO_SESSION_PARAMETERS_CREATE_QUANTIZATION_MAP_COMPATIBLE_BIT_KHR.
Khronos reference: VK_VIDEO_SESSION_PARAMETERS_CREATE_QUANTIZATION_MAP_COMPATIBLE_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::VideoSessionParametersCreateInfoKHR
Contract
Native structure VkVideoSessionParametersCreateInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: VideoSessionParametersCreateFlagsKHRNative field flags.
video_session_parameters_template
video_session_parameters_template: VideoSessionParametersKHRNative field videoSessionParametersTemplate.
video_session
video_session: VideoSessionKHRNative field videoSession.
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_parameters_template
Set native field videoSessionParametersTemplate without native effects.
set_video_session
Set native field videoSession 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::VideoSessionParametersKHR
Contract
Raw Vulkan handle VkVideoSessionParametersKHR.
Khronos reference: VkVideoSessionParametersKHR
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::VideoSessionParametersUpdateInfoKHR
Contract
Native structure VkVideoSessionParametersUpdateInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
update_sequence_count
update_sequence_count: u32Native field updateSequenceCount.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_update_sequence_count
Set native field updateSequenceCount 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::Viewport
Contract
Native structure VkViewport.
Fields
x
x: f32Native field x.
y
y: f32Native field y.
width
width: f32Native field width.
height
height: f32Native field height.
min_depth
min_depth: f32Native field minDepth.
max_depth
max_depth: f32Native field maxDepth.
Methods and associated items
new
Construct the record with its default native state.
set_x
Set native field x without native effects.
set_y
Set native field y without native effects.
set_width
Set native field width without native effects.
set_height
Set native field height without native effects.
set_min_depth
Set native field minDepth without native effects.
set_max_depth
Set native field maxDepth without native effects.
clone
default
Stvk::ViewportCoordinateSwizzleNV
Contract
Open integer representation of VkViewportCoordinateSwizzleNV.
Fields
0
0: i32Methods and associated items
POSITIVE_X_NV
Native value VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_X_NV.
Khronos reference: VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_X_NV
NEGATIVE_X_NV
Native value VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_X_NV.
Khronos reference: VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_X_NV
POSITIVE_Y_NV
Native value VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_Y_NV.
Khronos reference: VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_Y_NV
NEGATIVE_Y_NV
Native value VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_Y_NV.
Khronos reference: VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_Y_NV
POSITIVE_Z_NV
Native value VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_Z_NV.
Khronos reference: VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_Z_NV
NEGATIVE_Z_NV
Native value VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_Z_NV.
Khronos reference: VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_Z_NV
POSITIVE_W_NV
Native value VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_W_NV.
Khronos reference: VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_W_NV
NEGATIVE_W_NV
Native value VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_W_NV.
Khronos reference: VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_W_NV
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::ViewportSwizzleNV
Contract
Native structure VkViewportSwizzleNV.
Fields
x
x: ViewportCoordinateSwizzleNVNative field x.
y
y: ViewportCoordinateSwizzleNVNative field y.
z
z: ViewportCoordinateSwizzleNVNative field z.
w
w: ViewportCoordinateSwizzleNVNative field w.
Methods and associated items
new
Construct the record with its default native state.
set_x
Set native field x without native effects.
set_y
Set native field y without native effects.
set_z
Set native field z without native effects.
set_w
Set native field w without native effects.
clone
default
Stvk::ViewportWScalingNV
Contract
Native structure VkViewportWScalingNV.
Fields
xcoeff
xcoeff: f32Native field xcoeff.
ycoeff
ycoeff: f32Native field ycoeff.
Methods and associated items
new
Construct the record with its default native state.
set_xcoeff
Set native field xcoeff without native effects.
set_ycoeff
Set native field ycoeff without native effects.
clone
default
Stvk::ViSurfaceCreateFlagsNN
Contract
Open integer representation of VkViSurfaceCreateFlagsNN.
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::ViSurfaceCreateInfoNN
Contract
Native structure VkViSurfaceCreateInfoNN.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: ViSurfaceCreateFlagsNNNative field flags.
window
window: *mut c_voidNative field window.
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_window
Set native pointer window explicitly. No borrow or extent is inferred.
Safety
The caller must establish pointee validity, extent, alignment, aliasing and the full native retention lifetime before using this record in a native call. Callback, external-object and nested-pointer contracts remain caller obligations.
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.