vk · Structs · O2
7 public declarations with native signatures and source-owned contracts.
Stvk::OpticalFlowSessionCreateFlagBitsNV
Contract
Open integer representation of VkOpticalFlowSessionCreateFlagBitsNV.
Fields
0
0: u32Methods and associated items
ENABLE_HINT_BIT_NV
Native value VK_OPTICAL_FLOW_SESSION_CREATE_ENABLE_HINT_BIT_NV.
Khronos reference: VK_OPTICAL_FLOW_SESSION_CREATE_ENABLE_HINT_BIT_NV
ENABLE_COST_BIT_NV
Native value VK_OPTICAL_FLOW_SESSION_CREATE_ENABLE_COST_BIT_NV.
Khronos reference: VK_OPTICAL_FLOW_SESSION_CREATE_ENABLE_COST_BIT_NV
ENABLE_GLOBAL_FLOW_BIT_NV
Native value VK_OPTICAL_FLOW_SESSION_CREATE_ENABLE_GLOBAL_FLOW_BIT_NV.
Khronos reference: VK_OPTICAL_FLOW_SESSION_CREATE_ENABLE_GLOBAL_FLOW_BIT_NV
ALLOW_REGIONS_BIT_NV
Native value VK_OPTICAL_FLOW_SESSION_CREATE_ALLOW_REGIONS_BIT_NV.
Khronos reference: VK_OPTICAL_FLOW_SESSION_CREATE_ALLOW_REGIONS_BIT_NV
BOTH_DIRECTIONS_BIT_NV
Native value VK_OPTICAL_FLOW_SESSION_CREATE_BOTH_DIRECTIONS_BIT_NV.
Khronos reference: VK_OPTICAL_FLOW_SESSION_CREATE_BOTH_DIRECTIONS_BIT_NV
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::OpticalFlowSessionCreateInfoNV
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 */
}Contract
Native structure VkOpticalFlowSessionCreateInfoNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
width
width: u32Native field width.
height
height: u32Native field height.
image_format
image_format: FormatNative field imageFormat.
flow_vector_format
flow_vector_format: FormatNative field flowVectorFormat.
cost_format
cost_format: FormatNative field costFormat.
output_grid_size
output_grid_size: OpticalFlowGridSizeFlagsNVNative field outputGridSize.
hint_grid_size
hint_grid_size: OpticalFlowGridSizeFlagsNVNative field hintGridSize.
performance_level
performance_level: OpticalFlowPerformanceLevelNVNative field performanceLevel.
flags
flags: OpticalFlowSessionCreateFlagsNVNative field flags.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_width
Set native field width without native effects.
set_height
Set native field height without native effects.
set_image_format
Set native field imageFormat without native effects.
set_flow_vector_format
Set native field flowVectorFormat without native effects.
set_cost_format
Set native field costFormat without native effects.
set_output_grid_size
Set native field outputGridSize without native effects.
set_hint_grid_size
Set native field hintGridSize without native effects.
set_performance_level
Set native field performanceLevel without native effects.
set_flags
Set native field flags 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::OpticalFlowSessionCreatePrivateDataInfoNV
Contract
Native structure VkOpticalFlowSessionCreatePrivateDataInfoNV.
Khronos reference: VkOpticalFlowSessionCreatePrivateDataInfoNV
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
id
id: u32Native field id.
size
size: u32Native field size.
p_private_data
p_private_data: *const c_voidNative field pPrivateData.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_id
Set native field id without native effects.
set_size
Set native field size without native effects.
set_private_data
Set native pointer pPrivateData 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.
default
Stvk::OpticalFlowSessionNV
Contract
Raw Vulkan handle VkOpticalFlowSessionNV.
Khronos reference: VkOpticalFlowSessionNV
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::OpticalFlowUsageFlagBitsNV
Contract
Open integer representation of VkOpticalFlowUsageFlagBitsNV.
Fields
0
0: u32Methods and associated items
UNKNOWN_NV
Native value VK_OPTICAL_FLOW_USAGE_UNKNOWN_NV.
INPUT_BIT_NV
Native value VK_OPTICAL_FLOW_USAGE_INPUT_BIT_NV.
OUTPUT_BIT_NV
Native value VK_OPTICAL_FLOW_USAGE_OUTPUT_BIT_NV.
HINT_BIT_NV
Native value VK_OPTICAL_FLOW_USAGE_HINT_BIT_NV.
COST_BIT_NV
Native value VK_OPTICAL_FLOW_USAGE_COST_BIT_NV.
GLOBAL_FLOW_BIT_NV
Native value VK_OPTICAL_FLOW_USAGE_GLOBAL_FLOW_BIT_NV.
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::OutOfBandQueueTypeInfoNV
Contract
Native structure VkOutOfBandQueueTypeInfoNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
queue_type
queue_type: OutOfBandQueueTypeNVNative field queueType.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_queue_type
Set native field queueType 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::OutOfBandQueueTypeNV
Contract
Open integer representation of VkOutOfBandQueueTypeNV.
Fields
0
0: i32Methods and associated items
RENDER_NV
Native value VK_OUT_OF_BAND_QUEUE_TYPE_RENDER_NV.
PRESENT_NV
Native value VK_OUT_OF_BAND_QUEUE_TYPE_PRESENT_NV.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.