vk · Structs · P37
16 public declarations with native signatures and source-owned contracts.
Stvk::PolygonMode
Contract
Open integer representation of VkPolygonMode.
Fields
0
0: i32Methods and associated items
FILL
Native value VK_POLYGON_MODE_FILL.
LINE
Native value VK_POLYGON_MODE_LINE.
POINT
Native value VK_POLYGON_MODE_POINT.
FILL_RECTANGLE_NV
Native value VK_POLYGON_MODE_FILL_RECTANGLE_NV.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::PresentFrameTokenGGP
Contract
Native structure VkPresentFrameTokenGGP.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
frame_token
frame_token: GgpFrameTokenNative field frameToken.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_frame_token
Set native field frameToken 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::PresentGravityFlagBitsKHR
Contract
Open integer representation of VkPresentGravityFlagBitsKHR.
Fields
0
0: u32Methods and associated items
MIN_BIT_KHR
Native value VK_PRESENT_GRAVITY_MIN_BIT_KHR.
MIN_BIT_EXT
Native value VK_PRESENT_GRAVITY_MIN_BIT_EXT.
MAX_BIT_KHR
Native value VK_PRESENT_GRAVITY_MAX_BIT_KHR.
MAX_BIT_EXT
Native value VK_PRESENT_GRAVITY_MAX_BIT_EXT.
CENTERED_BIT_KHR
Native value VK_PRESENT_GRAVITY_CENTERED_BIT_KHR.
CENTERED_BIT_EXT
Native value VK_PRESENT_GRAVITY_CENTERED_BIT_EXT.
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::PresentId2KHR
Contract
Native structure VkPresentId2KHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
swapchain_count
swapchain_count: u32Native field swapchainCount.
p_present_ids
p_present_ids: *const u64Native field pPresentIds.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_swapchain_count
Set native count swapchainCount 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_ids
Borrow pPresentIds and set checked native count swapchainCount.
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::PresentIdKHR
Contract
Native structure VkPresentIdKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
swapchain_count
swapchain_count: u32Native field swapchainCount.
p_present_ids
p_present_ids: *const u64Native field pPresentIds.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_swapchain_count
Set native count swapchainCount 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_ids
Borrow pPresentIds and set checked native count swapchainCount.
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::PresentInfoKHR
pub struct PresentInfoKHR<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub wait_semaphore_count: u32,
pub p_wait_semaphores: *const Semaphore,
pub swapchain_count: u32,
pub p_swapchains: *const SwapchainKHR,
pub p_image_indices: *const u32,
pub p_results: *mut Result,
/* private fields */
}Contract
Native structure VkPresentInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
wait_semaphore_count
wait_semaphore_count: u32Native field waitSemaphoreCount.
p_wait_semaphores
p_wait_semaphores: *const SemaphoreNative field pWaitSemaphores.
swapchain_count
swapchain_count: u32Native field swapchainCount.
p_swapchains
p_swapchains: *const SwapchainKHRNative field pSwapchains.
p_image_indices
p_image_indices: *const u32Native field pImageIndices.
p_results
p_results: *mut ResultNative field pResults.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_wait_semaphore_count
Set native count waitSemaphoreCount 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_wait_semaphores
Borrow pWaitSemaphores and set checked native count waitSemaphoreCount.
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.
set_swapchain_count
Set native count swapchainCount 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_swapchains
Borrow parallel arrays sharing native swapchainCount. Optional arrays may be null.
Mutable arrays retain exclusive borrows of initialized output storage.
This checks lengths only; native valid usage and later raw edits remain caller obligations.
Errors
Returns a construction error for unequal lengths or native count overflow.
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::PresentModeKHR
Contract
Open integer representation of VkPresentModeKHR.
Fields
0
0: i32Methods and associated items
IMMEDIATE_KHR
Native value VK_PRESENT_MODE_IMMEDIATE_KHR.
MAILBOX_KHR
Native value VK_PRESENT_MODE_MAILBOX_KHR.
FIFO_KHR
Native value VK_PRESENT_MODE_FIFO_KHR.
FIFO_RELAXED_KHR
Native value VK_PRESENT_MODE_FIFO_RELAXED_KHR.
SHARED_DEMAND_REFRESH_KHR
Native value VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR.
Khronos reference: VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR
SHARED_CONTINUOUS_REFRESH_KHR
Native value VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR.
Khronos reference: VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR
FIFO_LATEST_READY_EXT
Native value VK_PRESENT_MODE_FIFO_LATEST_READY_EXT.
FIFO_LATEST_READY_KHR
Native value VK_PRESENT_MODE_FIFO_LATEST_READY_KHR.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::PresentRegionKHR
Contract
Native structure VkPresentRegionKHR.
Fields
rectangle_count
rectangle_count: u32Native field rectangleCount.
p_rectangles
p_rectangles: *const RectLayerKHRNative field pRectangles.
Methods and associated items
new
Construct the record with its default native state.
set_rectangle_count
Set native count rectangleCount 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_rectangles
Borrow pRectangles and set checked native count rectangleCount.
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.
clone
default
Stvk::PresentRegionsKHR
Contract
Native structure VkPresentRegionsKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
swapchain_count
swapchain_count: u32Native field swapchainCount.
p_regions
p_regions: *const PresentRegionKHR<'a>Native field pRegions.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_swapchain_count
Set native count swapchainCount 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_regions
Borrow pRegions and set checked native count swapchainCount.
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::PresentScalingFlagBitsKHR
Contract
Open integer representation of VkPresentScalingFlagBitsKHR.
Fields
0
0: u32Methods and associated items
ONE_TO_ONE_BIT_KHR
Native value VK_PRESENT_SCALING_ONE_TO_ONE_BIT_KHR.
ONE_TO_ONE_BIT_EXT
Native value VK_PRESENT_SCALING_ONE_TO_ONE_BIT_EXT.
ASPECT_RATIO_STRETCH_BIT_KHR
Native value VK_PRESENT_SCALING_ASPECT_RATIO_STRETCH_BIT_KHR.
Khronos reference: VK_PRESENT_SCALING_ASPECT_RATIO_STRETCH_BIT_KHR
ASPECT_RATIO_STRETCH_BIT_EXT
Native value VK_PRESENT_SCALING_ASPECT_RATIO_STRETCH_BIT_EXT.
Khronos reference: VK_PRESENT_SCALING_ASPECT_RATIO_STRETCH_BIT_EXT
STRETCH_BIT_KHR
Native value VK_PRESENT_SCALING_STRETCH_BIT_KHR.
STRETCH_BIT_EXT
Native value VK_PRESENT_SCALING_STRETCH_BIT_EXT.
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::PresentStageFlagBitsEXT
Contract
Open integer representation of VkPresentStageFlagBitsEXT.
Fields
0
0: u32Methods and associated items
QUEUE_OPERATIONS_END_BIT_EXT
Native value VK_PRESENT_STAGE_QUEUE_OPERATIONS_END_BIT_EXT.
Khronos reference: VK_PRESENT_STAGE_QUEUE_OPERATIONS_END_BIT_EXT
REQUEST_DEQUEUED_BIT_EXT
Native value VK_PRESENT_STAGE_REQUEST_DEQUEUED_BIT_EXT.
Khronos reference: VK_PRESENT_STAGE_REQUEST_DEQUEUED_BIT_EXT
IMAGE_FIRST_PIXEL_OUT_BIT_EXT
Native value VK_PRESENT_STAGE_IMAGE_FIRST_PIXEL_OUT_BIT_EXT.
Khronos reference: VK_PRESENT_STAGE_IMAGE_FIRST_PIXEL_OUT_BIT_EXT
IMAGE_FIRST_PIXEL_VISIBLE_BIT_EXT
Native value VK_PRESENT_STAGE_IMAGE_FIRST_PIXEL_VISIBLE_BIT_EXT.
Khronos reference: VK_PRESENT_STAGE_IMAGE_FIRST_PIXEL_VISIBLE_BIT_EXT
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::PresentStageTimeEXT
Contract
Native structure VkPresentStageTimeEXT.
Fields
stage
stage: PresentStageFlagsEXTNative field stage.
time
time: u64Native field time.
Methods and associated items
new
Construct the record with its default native state.
set_stage
Set native field stage without native effects.
set_time
Set native field time without native effects.
clone
default
Stvk::PresentTimeGOOGLE
Contract
Native structure VkPresentTimeGOOGLE.
Fields
present_id
present_id: u32Native field presentID.
desired_present_time
desired_present_time: u64Native field desiredPresentTime.
Methods and associated items
new
Construct the record with its default native state.
set_present_id
Set native field presentID without native effects.
set_desired_present_time
Set native field desiredPresentTime without native effects.
clone
default
Stvk::PresentTimesInfoGOOGLE
Contract
Native structure VkPresentTimesInfoGOOGLE.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
swapchain_count
swapchain_count: u32Native field swapchainCount.
p_times
p_times: *const PresentTimeGOOGLENative field pTimes.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_swapchain_count
Set native count swapchainCount 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_times
Borrow pTimes and set checked native count swapchainCount.
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::PresentTimingInfoEXT
pub struct PresentTimingInfoEXT<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: PresentTimingInfoFlagsEXT,
pub target_time: u64,
pub time_domain_id: u64,
pub present_stage_queries: PresentStageFlagsEXT,
pub target_time_domain_present_stage: PresentStageFlagsEXT,
/* private fields */
}Contract
Native structure VkPresentTimingInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: PresentTimingInfoFlagsEXTNative field flags.
target_time
target_time: u64Native field targetTime.
time_domain_id
time_domain_id: u64Native field timeDomainId.
present_stage_queries
present_stage_queries: PresentStageFlagsEXTNative field presentStageQueries.
target_time_domain_present_stage
target_time_domain_present_stage: PresentStageFlagsEXTNative field targetTimeDomainPresentStage.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_flags
Set native field flags without native effects.
set_target_time
Set native field targetTime without native effects.
set_time_domain_id
Set native field timeDomainId without native effects.
set_present_stage_queries
Set native field presentStageQueries without native effects.
set_target_time_domain_present_stage
Set native field targetTimeDomainPresentStage 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::PresentTimingInfoFlagBitsEXT
Contract
Open integer representation of VkPresentTimingInfoFlagBitsEXT.
Fields
0
0: u32Methods and associated items
PRESENT_AT_RELATIVE_TIME_BIT_EXT
Native value VK_PRESENT_TIMING_INFO_PRESENT_AT_RELATIVE_TIME_BIT_EXT.
Khronos reference: VK_PRESENT_TIMING_INFO_PRESENT_AT_RELATIVE_TIME_BIT_EXT
PRESENT_AT_NEAREST_REFRESH_CYCLE_BIT_EXT
Native value VK_PRESENT_TIMING_INFO_PRESENT_AT_NEAREST_REFRESH_CYCLE_BIT_EXT.
Khronos reference: VK_PRESENT_TIMING_INFO_PRESENT_AT_NEAREST_REFRESH_CYCLE_BIT_EXT
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 ==.