vk · Structs · I8
7 public declarations with native signatures and source-owned contracts.
Stvk::InputAttachmentAspectReference
Contract
Native structure VkInputAttachmentAspectReference.
Fields
subpass
subpass: u32Native field subpass.
input_attachment_index
input_attachment_index: u32Native field inputAttachmentIndex.
aspect_mask
aspect_mask: ImageAspectFlagsNative field aspectMask.
Methods and associated items
new
Construct the record with its default native state.
set_subpass
Set native field subpass without native effects.
set_input_attachment_index
Set native field inputAttachmentIndex without native effects.
set_aspect_mask
Set native field aspectMask without native effects.
clone
default
Stvk::InstanceCreateFlagBits
Contract
Open integer representation of VkInstanceCreateFlagBits.
Fields
0
0: u32Methods and associated items
ENUMERATE_PORTABILITY_BIT_KHR
Native value VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR.
Khronos reference: VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_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::InstanceCreateInfo
pub struct InstanceCreateInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: InstanceCreateFlags,
pub p_application_info: *const ApplicationInfo<'a>,
pub enabled_layer_count: u32,
pub pp_enabled_layer_names: *const *const c_char,
pub enabled_extension_count: u32,
pub pp_enabled_extension_names: *const *const c_char,
/* private fields */
}Contract
Native structure VkInstanceCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: InstanceCreateFlagsNative field flags.
p_application_info
p_application_info: *const ApplicationInfo<'a>Native field pApplicationInfo.
enabled_layer_count
enabled_layer_count: u32Native field enabledLayerCount.
pp_enabled_layer_names
pp_enabled_layer_names: *const *const c_charNative field ppEnabledLayerNames.
enabled_extension_count
enabled_extension_count: u32Native field enabledExtensionCount.
pp_enabled_extension_names
pp_enabled_extension_names: *const *const c_charNative field ppEnabledExtensionNames.
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_application_info
Set native field pApplicationInfo without native effects.
set_enabled_layer_count
Set native count enabledLayerCount 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_enabled_layer_names
Borrow ppEnabledLayerNames and set checked native count enabledLayerCount.
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_enabled_extension_count
Set native count enabledExtensionCount 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_enabled_extension_names
Borrow ppEnabledExtensionNames and set checked native count enabledExtensionCount.
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::InstanceHandle
Contract
Raw Vulkan handle VkInstance.
Khronos reference: VkInstance
Calls using this identity must satisfy Vulkan lifetime and synchronization rules.
Fields
0
0: *mut c_voidMethods 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::InternalAllocationType
Contract
Open integer representation of VkInternalAllocationType.
Fields
0
0: i32Methods and associated items
EXECUTABLE
Native value VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::IOSSurfaceCreateFlagsMVK
Contract
Open integer representation of VkIOSSurfaceCreateFlagsMVK.
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::IOSSurfaceCreateInfoMVK
Contract
Native structure VkIOSSurfaceCreateInfoMVK.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: IOSSurfaceCreateFlagsMVKNative field flags.
p_view
p_view: *const c_voidNative field pView.
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_view
Set native pointer pView 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.