Struct ash::vk::OpticalFlowSessionCreateInfoNVBuilder
source · pub struct OpticalFlowSessionCreateInfoNVBuilder<'a> { /* private fields */ }
Implementations§
source§impl<'a> OpticalFlowSessionCreateInfoNVBuilder<'a>
impl<'a> OpticalFlowSessionCreateInfoNVBuilder<'a>
pub fn width(self, width: u32) -> Self
pub fn height(self, height: u32) -> Self
pub fn image_format(self, image_format: Format) -> Self
pub fn flow_vector_format(self, flow_vector_format: Format) -> Self
pub fn cost_format(self, cost_format: Format) -> Self
pub fn output_grid_size( self, output_grid_size: OpticalFlowGridSizeFlagsNV ) -> Self
pub fn hint_grid_size(self, hint_grid_size: OpticalFlowGridSizeFlagsNV) -> Self
pub fn performance_level( self, performance_level: OpticalFlowPerformanceLevelNV ) -> Self
pub fn flags(self, flags: OpticalFlowSessionCreateFlagsNV) -> Self
sourcepub fn push_next<T: ExtendsOpticalFlowSessionCreateInfoNV>(
self,
next: &'a mut T
) -> Self
pub fn push_next<T: ExtendsOpticalFlowSessionCreateInfoNV>( 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) -> OpticalFlowSessionCreateInfoNV
pub fn build(self) -> OpticalFlowSessionCreateInfoNV
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 OpticalFlowSessionCreateInfoNVBuilder<'a>
impl<'a> Deref for OpticalFlowSessionCreateInfoNVBuilder<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for OpticalFlowSessionCreateInfoNVBuilder<'a>
impl<'a> !Send for OpticalFlowSessionCreateInfoNVBuilder<'a>
impl<'a> !Sync for OpticalFlowSessionCreateInfoNVBuilder<'a>
impl<'a> Unpin for OpticalFlowSessionCreateInfoNVBuilder<'a>
impl<'a> UnwindSafe for OpticalFlowSessionCreateInfoNVBuilder<'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