vk · Structs · L1
13 public declarations with native signatures and source-owned contracts.
Stvk::LatencyMarkerNV
Contract
Open integer representation of VkLatencyMarkerNV.
Fields
0
0: i32Methods and associated items
SIMULATION_START_NV
Native value VK_LATENCY_MARKER_SIMULATION_START_NV.
SIMULATION_END_NV
Native value VK_LATENCY_MARKER_SIMULATION_END_NV.
RENDERSUBMIT_START_NV
Native value VK_LATENCY_MARKER_RENDERSUBMIT_START_NV.
RENDERSUBMIT_END_NV
Native value VK_LATENCY_MARKER_RENDERSUBMIT_END_NV.
PRESENT_START_NV
Native value VK_LATENCY_MARKER_PRESENT_START_NV.
PRESENT_END_NV
Native value VK_LATENCY_MARKER_PRESENT_END_NV.
INPUT_SAMPLE_NV
Native value VK_LATENCY_MARKER_INPUT_SAMPLE_NV.
TRIGGER_FLASH_NV
Native value VK_LATENCY_MARKER_TRIGGER_FLASH_NV.
OUT_OF_BAND_RENDERSUBMIT_START_NV
Native value VK_LATENCY_MARKER_OUT_OF_BAND_RENDERSUBMIT_START_NV.
Khronos reference: VK_LATENCY_MARKER_OUT_OF_BAND_RENDERSUBMIT_START_NV
OUT_OF_BAND_RENDERSUBMIT_END_NV
Native value VK_LATENCY_MARKER_OUT_OF_BAND_RENDERSUBMIT_END_NV.
Khronos reference: VK_LATENCY_MARKER_OUT_OF_BAND_RENDERSUBMIT_END_NV
OUT_OF_BAND_PRESENT_START_NV
Native value VK_LATENCY_MARKER_OUT_OF_BAND_PRESENT_START_NV.
Khronos reference: VK_LATENCY_MARKER_OUT_OF_BAND_PRESENT_START_NV
OUT_OF_BAND_PRESENT_END_NV
Native value VK_LATENCY_MARKER_OUT_OF_BAND_PRESENT_END_NV.
Khronos reference: VK_LATENCY_MARKER_OUT_OF_BAND_PRESENT_END_NV
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::LatencySleepInfoNV
Contract
Native structure VkLatencySleepInfoNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
signal_semaphore
signal_semaphore: SemaphoreNative field signalSemaphore.
value
value: u64Native field value.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_signal_semaphore
Set native field signalSemaphore without native effects.
set_value
Set native field value 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::LatencySleepModeInfoNV
Contract
Native structure VkLatencySleepModeInfoNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
low_latency_mode
low_latency_mode: Bool32Native field lowLatencyMode.
low_latency_boost
low_latency_boost: Bool32Native field lowLatencyBoost.
minimum_interval_us
minimum_interval_us: u32Native field minimumIntervalUs.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_low_latency_mode
Set native field lowLatencyMode without native effects.
set_low_latency_boost
Set native field lowLatencyBoost without native effects.
set_minimum_interval_us
Set native field minimumIntervalUs 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::LatencySubmissionPresentIdNV
Contract
Native structure VkLatencySubmissionPresentIdNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
present_id
present_id: u64Native field presentID.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_present_id
Set native field presentID 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::LatencySurfaceCapabilitiesNV
Contract
Native structure VkLatencySurfaceCapabilitiesNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
present_mode_count
present_mode_count: u32Native field presentModeCount.
p_present_modes
p_present_modes: *mut PresentModeKHRNative field pPresentModes.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_present_mode_count
Set native count presentModeCount directly without checking associated pointer extents.
Use the borrowed array helpers to derive matching storage and counts together.
Direct count edits support null-query/dynamic-state paths and remain a
native-call validity obligation, including after earlier borrowed setters.
set_present_modes
Borrow pPresentModes and set checked native count presentModeCount.
The borrow covers this storage only; nested raw pointers, format, alignment
and asynchronous retention remain native-call obligations.
Output storage must be initialized; returned sizes do not enlarge its capacity.
Errors
Returns a construction error if the length exceeds the native count width.
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::LatencyTimingsFrameReportNV
pub struct LatencyTimingsFrameReportNV<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub present_id: u64,
pub input_sample_time_us: u64,
pub sim_start_time_us: u64,
pub sim_end_time_us: u64,
pub render_submit_start_time_us: u64,
pub render_submit_end_time_us: u64,
pub present_start_time_us: u64,
pub present_end_time_us: u64,
pub driver_start_time_us: u64,
pub driver_end_time_us: u64,
pub os_render_queue_start_time_us: u64,
pub os_render_queue_end_time_us: u64,
pub gpu_render_start_time_us: u64,
pub gpu_render_end_time_us: u64,
/* private fields */
}Contract
Native structure VkLatencyTimingsFrameReportNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
present_id
present_id: u64Native field presentID.
input_sample_time_us
input_sample_time_us: u64Native field inputSampleTimeUs.
sim_start_time_us
sim_start_time_us: u64Native field simStartTimeUs.
sim_end_time_us
sim_end_time_us: u64Native field simEndTimeUs.
render_submit_start_time_us
render_submit_start_time_us: u64Native field renderSubmitStartTimeUs.
render_submit_end_time_us
render_submit_end_time_us: u64Native field renderSubmitEndTimeUs.
present_start_time_us
present_start_time_us: u64Native field presentStartTimeUs.
present_end_time_us
present_end_time_us: u64Native field presentEndTimeUs.
driver_start_time_us
driver_start_time_us: u64Native field driverStartTimeUs.
driver_end_time_us
driver_end_time_us: u64Native field driverEndTimeUs.
os_render_queue_start_time_us
os_render_queue_start_time_us: u64Native field osRenderQueueStartTimeUs.
os_render_queue_end_time_us
os_render_queue_end_time_us: u64Native field osRenderQueueEndTimeUs.
gpu_render_start_time_us
gpu_render_start_time_us: u64Native field gpuRenderStartTimeUs.
gpu_render_end_time_us
gpu_render_end_time_us: u64Native field gpuRenderEndTimeUs.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_present_id
Set native field presentID without native effects.
set_input_sample_time_us
Set native field inputSampleTimeUs without native effects.
set_sim_start_time_us
Set native field simStartTimeUs without native effects.
set_sim_end_time_us
Set native field simEndTimeUs without native effects.
set_render_submit_start_time_us
Set native field renderSubmitStartTimeUs without native effects.
set_render_submit_end_time_us
Set native field renderSubmitEndTimeUs without native effects.
set_present_start_time_us
Set native field presentStartTimeUs without native effects.
set_present_end_time_us
Set native field presentEndTimeUs without native effects.
set_driver_start_time_us
Set native field driverStartTimeUs without native effects.
set_driver_end_time_us
Set native field driverEndTimeUs without native effects.
set_os_render_queue_start_time_us
Set native field osRenderQueueStartTimeUs without native effects.
set_os_render_queue_end_time_us
Set native field osRenderQueueEndTimeUs without native effects.
set_gpu_render_start_time_us
Set native field gpuRenderStartTimeUs without native effects.
set_gpu_render_end_time_us
Set native field gpuRenderEndTimeUs 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::LayeredDriverUnderlyingApiMSFT
Contract
Open integer representation of VkLayeredDriverUnderlyingApiMSFT.
Fields
0
0: i32Methods and associated items
LAYERED_DRIVER_UNDERLYING_API_NONE_MSFT
Native value VK_LAYERED_DRIVER_UNDERLYING_API_NONE_MSFT.
Khronos reference: VK_LAYERED_DRIVER_UNDERLYING_API_NONE_MSFT
LAYERED_DRIVER_UNDERLYING_API_D3D12_MSFT
Native value VK_LAYERED_DRIVER_UNDERLYING_API_D3D12_MSFT.
Khronos reference: VK_LAYERED_DRIVER_UNDERLYING_API_D3D12_MSFT
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::LayerProperties
Contract
Native structure VkLayerProperties.
Fields
layer_name
layer_name: [c_char; 256]Native field layerName.
spec_version
spec_version: u32Native field specVersion.
implementation_version
implementation_version: u32Native field implementationVersion.
description
description: [c_char; 256]Native field description.
Methods and associated items
new
Construct the record with its default native state.
set_layer_name
Set native field layerName without native effects.
set_spec_version
Set native field specVersion without native effects.
set_implementation_version
Set native field implementationVersion without native effects.
set_description
Set native field description without native effects.
clone
default
Stvk::LayerSettingEXT
Contract
Native structure VkLayerSettingEXT.
Fields
p_layer_name
p_layer_name: *const c_charNative field pLayerName.
p_setting_name
p_setting_name: *const c_charNative field pSettingName.
type
type: LayerSettingTypeEXTNative field type.
value_count
value_count: u32Native field valueCount.
p_values
p_values: *const c_voidNative field pValues.
Methods and associated items
new
Construct the record with its default native state.
set_layer_name
Set native field pLayerName without native effects.
set_setting_name
Set native field pSettingName without native effects.
set_type
Set native field type without native effects.
set_value_count
Set native count valueCount directly without checking associated pointer extents.
Use the borrowed array helpers to derive matching storage and counts together.
Direct count edits support null-query/dynamic-state paths and remain a
native-call validity obligation, including after earlier borrowed setters.
set_values
Set native pointer pValues 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.
set_values_bool32
Borrow typed layer values and set their native type and element count. For strings the borrow covers the pointer table, not the strings it names.
Errors
Returns a construction error if the element count exceeds u32.
set_values_int32
Borrow typed layer values and set their native type and element count. For strings the borrow covers the pointer table, not the strings it names.
Errors
Returns a construction error if the element count exceeds u32.
set_values_int64
Borrow typed layer values and set their native type and element count. For strings the borrow covers the pointer table, not the strings it names.
Errors
Returns a construction error if the element count exceeds u32.
set_values_uint32
Borrow typed layer values and set their native type and element count. For strings the borrow covers the pointer table, not the strings it names.
Errors
Returns a construction error if the element count exceeds u32.
set_values_uint64
Borrow typed layer values and set their native type and element count. For strings the borrow covers the pointer table, not the strings it names.
Errors
Returns a construction error if the element count exceeds u32.
set_values_float32
Borrow typed layer values and set their native type and element count. For strings the borrow covers the pointer table, not the strings it names.
Errors
Returns a construction error if the element count exceeds u32.
set_values_float64
Borrow typed layer values and set their native type and element count. For strings the borrow covers the pointer table, not the strings it names.
Errors
Returns a construction error if the element count exceeds u32.
set_values_strings
Borrow typed layer values and set their native type and element count. For strings the borrow covers the pointer table, not the strings it names.
Errors
Returns a construction error if the element count exceeds u32.
clone
default
Stvk::LayerSettingsCreateInfoEXT
Contract
Native structure VkLayerSettingsCreateInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
setting_count
setting_count: u32Native field settingCount.
p_settings
p_settings: *const LayerSettingEXT<'a>Native field pSettings.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_setting_count
Set native count settingCount directly without checking associated pointer extents.
Use the borrowed array helpers to derive matching storage and counts together.
Direct count edits support null-query/dynamic-state paths and remain a
native-call validity obligation, including after earlier borrowed setters.
set_settings
Borrow pSettings and set checked native count settingCount.
The borrow covers this storage only; nested raw pointers, format, alignment
and asynchronous retention remain native-call obligations.
Output storage must be initialized; returned sizes do not enlarge its capacity.
Errors
Returns a construction error if the length exceeds the native count width.
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::LayerSettingTypeEXT
Contract
Open integer representation of VkLayerSettingTypeEXT.
Fields
0
0: i32Methods and associated items
BOOL32_EXT
Native value VK_LAYER_SETTING_TYPE_BOOL32_EXT.
INT32_EXT
Native value VK_LAYER_SETTING_TYPE_INT32_EXT.
INT64_EXT
Native value VK_LAYER_SETTING_TYPE_INT64_EXT.
UINT32_EXT
Native value VK_LAYER_SETTING_TYPE_UINT32_EXT.
UINT64_EXT
Native value VK_LAYER_SETTING_TYPE_UINT64_EXT.
FLOAT32_EXT
Native value VK_LAYER_SETTING_TYPE_FLOAT32_EXT.
FLOAT64_EXT
Native value VK_LAYER_SETTING_TYPE_FLOAT64_EXT.
STRING_EXT
Native value VK_LAYER_SETTING_TYPE_STRING_EXT.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::LineRasterizationMode
Contract
Open integer representation of VkLineRasterizationMode.
Fields
0
0: i32Methods and associated items
DEFAULT
Native value VK_LINE_RASTERIZATION_MODE_DEFAULT.
RECTANGULAR
Native value VK_LINE_RASTERIZATION_MODE_RECTANGULAR.
BRESENHAM
Native value VK_LINE_RASTERIZATION_MODE_BRESENHAM.
RECTANGULAR_SMOOTH
Native value VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH.
Khronos reference: VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH
DEFAULT_EXT
Native value VK_LINE_RASTERIZATION_MODE_DEFAULT_EXT.
RECTANGULAR_EXT
Native value VK_LINE_RASTERIZATION_MODE_RECTANGULAR_EXT.
Khronos reference: VK_LINE_RASTERIZATION_MODE_RECTANGULAR_EXT
BRESENHAM_EXT
Native value VK_LINE_RASTERIZATION_MODE_BRESENHAM_EXT.
RECTANGULAR_SMOOTH_EXT
Native value VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT.
Khronos reference: VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT
DEFAULT_KHR
Native value VK_LINE_RASTERIZATION_MODE_DEFAULT_KHR.
RECTANGULAR_KHR
Native value VK_LINE_RASTERIZATION_MODE_RECTANGULAR_KHR.
Khronos reference: VK_LINE_RASTERIZATION_MODE_RECTANGULAR_KHR
BRESENHAM_KHR
Native value VK_LINE_RASTERIZATION_MODE_BRESENHAM_KHR.
RECTANGULAR_SMOOTH_KHR
Native value VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_KHR.
Khronos reference: VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_KHR
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::LogicOp
Contract
Open integer representation of VkLogicOp.
Fields
0
0: i32Methods and associated items
CLEAR
Native value VK_LOGIC_OP_CLEAR.
AND
Native value VK_LOGIC_OP_AND.
AND_REVERSE
Native value VK_LOGIC_OP_AND_REVERSE.
COPY
Native value VK_LOGIC_OP_COPY.
AND_INVERTED
Native value VK_LOGIC_OP_AND_INVERTED.
NO_OP
Native value VK_LOGIC_OP_NO_OP.
XOR
Native value VK_LOGIC_OP_XOR.
OR
Native value VK_LOGIC_OP_OR.
NOR
Native value VK_LOGIC_OP_NOR.
EQUIVALENT
Native value VK_LOGIC_OP_EQUIVALENT.
INVERT
Native value VK_LOGIC_OP_INVERT.
OR_REVERSE
Native value VK_LOGIC_OP_OR_REVERSE.
COPY_INVERTED
Native value VK_LOGIC_OP_COPY_INVERTED.
OR_INVERTED
Native value VK_LOGIC_OP_OR_INVERTED.
NAND
Native value VK_LOGIC_OP_NAND.
SET
Native value VK_LOGIC_OP_SET.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.