pub struct VideoDecodeInfoKHRBuilder<'a> { /* private fields */ }
Implementations§
Source§impl<'a> VideoDecodeInfoKHRBuilder<'a>
impl<'a> VideoDecodeInfoKHRBuilder<'a>
pub fn flags(self, flags: VideoDecodeFlagsKHR) -> Self
pub fn coded_offset(self, coded_offset: Offset2D) -> Self
pub fn coded_extent(self, coded_extent: Extent2D) -> Self
pub fn src_buffer(self, src_buffer: Buffer) -> Self
pub fn src_buffer_offset(self, src_buffer_offset: DeviceSize) -> Self
pub fn src_buffer_range(self, src_buffer_range: DeviceSize) -> Self
pub fn dst_picture_resource( self, dst_picture_resource: VideoPictureResourceKHR, ) -> Self
pub fn setup_reference_slot( self, setup_reference_slot: &'a VideoReferenceSlotKHR, ) -> Self
pub fn reference_slots( self, reference_slots: &'a [VideoReferenceSlotKHR], ) -> Self
Sourcepub fn push_next<T: ExtendsVideoDecodeInfoKHR>(self, next: &'a mut T) -> Self
pub fn push_next<T: ExtendsVideoDecodeInfoKHR>(self, next: &'a mut T) -> Self
Prepends the given extension struct between the root and the first pointer. This
method only exists on structs that can be passed to a function directly. Only
valid extension structs can be pushed into the chain.
If the chain looks like A -> B -> C
, and you call builder.push_next(&mut D)
, then the
chain will look like A -> D -> B -> C
.
Sourcepub fn build(self) -> VideoDecodeInfoKHR
pub fn build(self) -> VideoDecodeInfoKHR
Calling build will discard all the lifetime information. Only call this if
necessary! Builders implement Deref
targeting their corresponding Vulkan struct,
so references to builders can be passed directly to Vulkan functions.
Trait Implementations§
Source§impl<'a> Deref for VideoDecodeInfoKHRBuilder<'a>
impl<'a> Deref for VideoDecodeInfoKHRBuilder<'a>
Auto Trait Implementations§
impl<'a> Freeze for VideoDecodeInfoKHRBuilder<'a>
impl<'a> RefUnwindSafe for VideoDecodeInfoKHRBuilder<'a>
impl<'a> !Send for VideoDecodeInfoKHRBuilder<'a>
impl<'a> !Sync for VideoDecodeInfoKHRBuilder<'a>
impl<'a> Unpin for VideoDecodeInfoKHRBuilder<'a>
impl<'a> UnwindSafe for VideoDecodeInfoKHRBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more