pub struct OpticalFlowSessionCreateInfoNV<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub width: u32,
pub height: u32,
pub image_format: Format,
pub flow_vector_format: Format,
pub cost_format: Format,
pub output_grid_size: OpticalFlowGridSizeFlagsNV,
pub hint_grid_size: OpticalFlowGridSizeFlagsNV,
pub performance_level: OpticalFlowPerformanceLevelNV,
pub flags: OpticalFlowSessionCreateFlagsNV,
/* private fields */
}Expand description
Native structure VkOpticalFlowSessionCreateInfoNV.
Fields§
§s_type: StructureTypeNative field sType.
p_next: *mut c_voidNative field pNext.
width: u32Native field width.
height: u32Native field height.
image_format: FormatNative field imageFormat.
flow_vector_format: FormatNative field flowVectorFormat.
cost_format: FormatNative field costFormat.
output_grid_size: OpticalFlowGridSizeFlagsNVNative field outputGridSize.
hint_grid_size: OpticalFlowGridSizeFlagsNVNative field hintGridSize.
performance_level: OpticalFlowPerformanceLevelNVNative field performanceLevel.
flags: OpticalFlowSessionCreateFlagsNVNative field flags.
Implementations§
Source§impl<'a> OpticalFlowSessionCreateInfoNV<'a>
impl<'a> OpticalFlowSessionCreateInfoNV<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct the record with its canonical sType tag and default native state.
Sourcepub fn set_height(self, value: u32) -> Self
pub fn set_height(self, value: u32) -> Self
Set native field height without native effects.
Sourcepub fn set_image_format(self, value: Format) -> Self
pub fn set_image_format(self, value: Format) -> Self
Set native field imageFormat without native effects.
Sourcepub fn set_flow_vector_format(self, value: Format) -> Self
pub fn set_flow_vector_format(self, value: Format) -> Self
Set native field flowVectorFormat without native effects.
Sourcepub fn set_cost_format(self, value: Format) -> Self
pub fn set_cost_format(self, value: Format) -> Self
Set native field costFormat without native effects.
Sourcepub fn set_output_grid_size(self, value: OpticalFlowGridSizeFlagsNV) -> Self
pub fn set_output_grid_size(self, value: OpticalFlowGridSizeFlagsNV) -> Self
Set native field outputGridSize without native effects.
Sourcepub fn set_hint_grid_size(self, value: OpticalFlowGridSizeFlagsNV) -> Self
pub fn set_hint_grid_size(self, value: OpticalFlowGridSizeFlagsNV) -> Self
Set native field hintGridSize without native effects.
Sourcepub fn set_performance_level(self, value: OpticalFlowPerformanceLevelNV) -> Self
pub fn set_performance_level(self, value: OpticalFlowPerformanceLevelNV) -> Self
Set native field performanceLevel without native effects.
Sourcepub fn set_flags(self, value: OpticalFlowSessionCreateFlagsNV) -> Self
pub fn set_flags(self, value: OpticalFlowSessionCreateFlagsNV) -> Self
Set native field flags 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.