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 */
}Expand description
Native structure VkVideoCapabilitiesKHR.
Fields§
§s_type: StructureTypeNative field sType.
p_next: *mut c_voidNative field pNext.
flags: VideoCapabilityFlagsKHRNative field flags.
min_bitstream_buffer_offset_alignment: DeviceSizeNative field minBitstreamBufferOffsetAlignment.
min_bitstream_buffer_size_alignment: DeviceSizeNative field minBitstreamBufferSizeAlignment.
picture_access_granularity: Extent2DNative field pictureAccessGranularity.
min_coded_extent: Extent2DNative field minCodedExtent.
max_coded_extent: Extent2DNative field maxCodedExtent.
max_dpb_slots: u32Native field maxDpbSlots.
max_active_reference_pictures: u32Native field maxActiveReferencePictures.
std_header_version: ExtensionPropertiesNative field stdHeaderVersion.
Implementations§
Source§impl<'a> VideoCapabilitiesKHR<'a>
impl<'a> VideoCapabilitiesKHR<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct the record with its canonical sType tag and default native state.
Sourcepub fn set_flags(self, value: VideoCapabilityFlagsKHR) -> Self
pub fn set_flags(self, value: VideoCapabilityFlagsKHR) -> Self
Set native field flags without native effects.
Sourcepub fn set_min_bitstream_buffer_offset_alignment(
self,
value: DeviceSize,
) -> Self
pub fn set_min_bitstream_buffer_offset_alignment( self, value: DeviceSize, ) -> Self
Set native field minBitstreamBufferOffsetAlignment without native effects.
Sourcepub fn set_min_bitstream_buffer_size_alignment(self, value: DeviceSize) -> Self
pub fn set_min_bitstream_buffer_size_alignment(self, value: DeviceSize) -> Self
Set native field minBitstreamBufferSizeAlignment without native effects.
Sourcepub fn set_picture_access_granularity(self, value: Extent2D) -> Self
pub fn set_picture_access_granularity(self, value: Extent2D) -> Self
Set native field pictureAccessGranularity without native effects.
Sourcepub fn set_min_coded_extent(self, value: Extent2D) -> Self
pub fn set_min_coded_extent(self, value: Extent2D) -> Self
Set native field minCodedExtent without native effects.
Sourcepub fn set_max_coded_extent(self, value: Extent2D) -> Self
pub fn set_max_coded_extent(self, value: Extent2D) -> Self
Set native field maxCodedExtent without native effects.
Sourcepub fn set_max_dpb_slots(self, value: u32) -> Self
pub fn set_max_dpb_slots(self, value: u32) -> Self
Set native field maxDpbSlots without native effects.
Sourcepub fn set_max_active_reference_pictures(self, value: u32) -> Self
pub fn set_max_active_reference_pictures(self, value: u32) -> Self
Set native field maxActiveReferencePictures without native effects.
Sourcepub fn set_std_header_version(self, value: ExtensionProperties) -> Self
pub fn set_std_header_version(self, value: ExtensionProperties) -> Self
Set native field stdHeaderVersion without native effects.
Sourcepub fn push_next<T: Extends<Self>>(
self,
next: &'a mut T,
) -> Result<Self, ConstructionError>
pub fn push_next<T: Extends<Self>>( self, next: &'a mut T, ) -> Result<Self, ConstructionError>
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.