vk · Structs · S17
16 public declarations with native signatures and source-owned contracts.
Stvk::SurfaceCounterFlagBitsEXT
Contract
Open integer representation of VkSurfaceCounterFlagBitsEXT.
Fields
0
0: u32Methods and associated items
VBLANK_BIT_EXT
Native value VK_SURFACE_COUNTER_VBLANK_BIT_EXT.
VBLANK_EXT
Native value VK_SURFACE_COUNTER_VBLANK_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::SurfaceCreateFlagsOHOS
Contract
Open integer representation of VkSurfaceCreateFlagsOHOS.
Fields
0
0: u32Methods and associated items
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::SurfaceCreateInfoOHOS
Contract
Native structure VkSurfaceCreateInfoOHOS.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: SurfaceCreateFlagsOHOSNative field flags.
window
window: *mut OHNativeWindowNative field window.
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_window
Set native pointer window 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::SurfaceFormat2KHR
Contract
Native structure VkSurfaceFormat2KHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
surface_format
surface_format: SurfaceFormatKHRNative field surfaceFormat.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_surface_format
Set native field surfaceFormat 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::SurfaceFormatKHR
Contract
Native structure VkSurfaceFormatKHR.
Fields
format
format: FormatNative field format.
color_space
color_space: ColorSpaceKHRNative field colorSpace.
Methods and associated items
new
Construct the record with its default native state.
set_format
Set native field format without native effects.
set_color_space
Set native field colorSpace without native effects.
clone
default
Stvk::SurfaceFullScreenExclusiveInfoEXT
Contract
Native structure VkSurfaceFullScreenExclusiveInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
full_screen_exclusive
full_screen_exclusive: FullScreenExclusiveEXTNative field fullScreenExclusive.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_full_screen_exclusive
Set native field fullScreenExclusive 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::SurfaceFullScreenExclusiveWin32InfoEXT
Contract
Native structure VkSurfaceFullScreenExclusiveWin32InfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
hmonitor
hmonitor: HMONITORNative field hmonitor.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_hmonitor
Set native field hmonitor 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::SurfaceKHR
Contract
Raw Vulkan handle VkSurfaceKHR.
Khronos reference: VkSurfaceKHR
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::SurfacePresentModeCompatibilityKHR
Contract
Native structure VkSurfacePresentModeCompatibilityKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut 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::SurfacePresentModeKHR
Contract
Native structure VkSurfacePresentModeKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
present_mode
present_mode: PresentModeKHRNative field presentMode.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_present_mode
Set native field presentMode 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::SurfacePresentScalingCapabilitiesKHR
pub struct SurfacePresentScalingCapabilitiesKHR<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub supported_present_scaling: PresentScalingFlagsKHR,
pub supported_present_gravity_x: PresentGravityFlagsKHR,
pub supported_present_gravity_y: PresentGravityFlagsKHR,
pub min_scaled_image_extent: Extent2D,
pub max_scaled_image_extent: Extent2D,
/* private fields */
}Contract
Native structure VkSurfacePresentScalingCapabilitiesKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
supported_present_scaling
supported_present_scaling: PresentScalingFlagsKHRNative field supportedPresentScaling.
supported_present_gravity_x
supported_present_gravity_x: PresentGravityFlagsKHRNative field supportedPresentGravityX.
supported_present_gravity_y
supported_present_gravity_y: PresentGravityFlagsKHRNative field supportedPresentGravityY.
min_scaled_image_extent
min_scaled_image_extent: Extent2DNative field minScaledImageExtent.
max_scaled_image_extent
max_scaled_image_extent: Extent2DNative field maxScaledImageExtent.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_supported_present_scaling
Set native field supportedPresentScaling without native effects.
set_supported_present_gravity_x
Set native field supportedPresentGravityX without native effects.
set_supported_present_gravity_y
Set native field supportedPresentGravityY without native effects.
set_min_scaled_image_extent
Set native field minScaledImageExtent without native effects.
set_max_scaled_image_extent
Set native field maxScaledImageExtent 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::SurfaceProtectedCapabilitiesKHR
Contract
Native structure VkSurfaceProtectedCapabilitiesKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
supports_protected
supports_protected: Bool32Native field supportsProtected.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_supports_protected
Set native field supportsProtected 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::SurfaceTransformFlagBitsKHR
Contract
Open integer representation of VkSurfaceTransformFlagBitsKHR.
Fields
0
0: u32Methods and associated items
IDENTITY_BIT_KHR
Native value VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR.
ROTATE_90_BIT_KHR
Native value VK_SURFACE_TRANSFORM_ROTATE_90_BIT_KHR.
ROTATE_180_BIT_KHR
Native value VK_SURFACE_TRANSFORM_ROTATE_180_BIT_KHR.
ROTATE_270_BIT_KHR
Native value VK_SURFACE_TRANSFORM_ROTATE_270_BIT_KHR.
HORIZONTAL_MIRROR_BIT_KHR
Native value VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_BIT_KHR.
Khronos reference: VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_BIT_KHR
HORIZONTAL_MIRROR_ROTATE_90_BIT_KHR
Native value VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_90_BIT_KHR.
Khronos reference: VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_90_BIT_KHR
HORIZONTAL_MIRROR_ROTATE_180_BIT_KHR
Native value VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180_BIT_KHR.
Khronos reference: VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180_BIT_KHR
HORIZONTAL_MIRROR_ROTATE_270_BIT_KHR
Native value VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_270_BIT_KHR.
Khronos reference: VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_270_BIT_KHR
INHERIT_BIT_KHR
Native value VK_SURFACE_TRANSFORM_INHERIT_BIT_KHR.
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::SwapchainCalibratedTimestampInfoEXT
Contract
Native structure VkSwapchainCalibratedTimestampInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
swapchain
swapchain: SwapchainKHRNative field swapchain.
present_stage
present_stage: PresentStageFlagsEXTNative field presentStage.
time_domain_id
time_domain_id: u64Native field timeDomainId.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_swapchain
Set native field swapchain without native effects.
set_present_stage
Set native field presentStage without native effects.
set_time_domain_id
Set native field timeDomainId 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::SwapchainCounterCreateInfoEXT
Contract
Native structure VkSwapchainCounterCreateInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
surface_counters
surface_counters: SurfaceCounterFlagsEXTNative field surfaceCounters.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_surface_counters
Set native field surfaceCounters 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::SwapchainCreateFlagBitsKHR
Contract
Open integer representation of VkSwapchainCreateFlagBitsKHR.
Fields
0
0: u32Methods and associated items
SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR
Native value VK_SWAPCHAIN_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR.
Khronos reference: VK_SWAPCHAIN_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR
PROTECTED_BIT_KHR
Native value VK_SWAPCHAIN_CREATE_PROTECTED_BIT_KHR.
MUTABLE_FORMAT_BIT_KHR
Native value VK_SWAPCHAIN_CREATE_MUTABLE_FORMAT_BIT_KHR.
Khronos reference: VK_SWAPCHAIN_CREATE_MUTABLE_FORMAT_BIT_KHR
PRESENT_TIMING_BIT_EXT
Native value VK_SWAPCHAIN_CREATE_PRESENT_TIMING_BIT_EXT.
Khronos reference: VK_SWAPCHAIN_CREATE_PRESENT_TIMING_BIT_EXT
DEFERRED_MEMORY_ALLOCATION_BIT_EXT
Native value VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_EXT.
Khronos reference: VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_EXT
PRESENT_ID_2_BIT_KHR
Native value VK_SWAPCHAIN_CREATE_PRESENT_ID_2_BIT_KHR.
PRESENT_WAIT_2_BIT_KHR
Native value VK_SWAPCHAIN_CREATE_PRESENT_WAIT_2_BIT_KHR.
Khronos reference: VK_SWAPCHAIN_CREATE_PRESENT_WAIT_2_BIT_KHR
DEFERRED_MEMORY_ALLOCATION_BIT_KHR
Native value VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_KHR.
Khronos reference: VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_KHR
MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_BIT_EXT
Native value VK_SWAPCHAIN_CREATE_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_BIT_EXT.
Khronos reference: VK_SWAPCHAIN_CREATE_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_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 ==.