vk · Structs · I5
16 public declarations with native signatures and source-owned contracts.
Stvk::ImageViewType
Contract
Open integer representation of VkImageViewType.
Fields
0
0: i32Methods and associated items
_1D
Native value VK_IMAGE_VIEW_TYPE_1D.
_2D
Native value VK_IMAGE_VIEW_TYPE_2D.
_3D
Native value VK_IMAGE_VIEW_TYPE_3D.
CUBE
Native value VK_IMAGE_VIEW_TYPE_CUBE.
_1D_ARRAY
Native value VK_IMAGE_VIEW_TYPE_1D_ARRAY.
_2D_ARRAY
Native value VK_IMAGE_VIEW_TYPE_2D_ARRAY.
CUBE_ARRAY
Native value VK_IMAGE_VIEW_TYPE_CUBE_ARRAY.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::ImageViewUsage2CreateInfoKHR
Contract
Native structure VkImageViewUsage2CreateInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
usage
usage: ImageUsageFlags2KHRNative field usage.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_usage
Set native field usage 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::ImageViewUsageCreateInfo
Contract
Native structure VkImageViewUsageCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
usage
usage: ImageUsageFlagsNative field usage.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_usage
Set native field usage 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::ImportAndroidHardwareBufferInfoANDROID
Contract
Native structure VkImportAndroidHardwareBufferInfoANDROID.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
buffer
buffer: *mut AHardwareBufferNative field buffer.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_buffer
Set native pointer buffer 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::ImportFenceFdInfoKHR
Contract
Native structure VkImportFenceFdInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
fence
fence: FenceNative field fence.
flags
flags: FenceImportFlagsNative field flags.
handle_type
handle_type: ExternalFenceHandleTypeFlagBitsNative field handleType.
fd
fd: i32Native field fd.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_fence
Set native field fence without native effects.
set_flags
Set native field flags without native effects.
set_handle_type
Set native field handleType without native effects.
set_fd
Set native field fd 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::ImportFenceWin32HandleInfoKHR
Contract
Native structure VkImportFenceWin32HandleInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
fence
fence: FenceNative field fence.
flags
flags: FenceImportFlagsNative field flags.
handle_type
handle_type: ExternalFenceHandleTypeFlagBitsNative field handleType.
handle
handle: HANDLENative field handle.
name
name: LPCWSTRNative field name.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_fence
Set native field fence without native effects.
set_flags
Set native field flags without native effects.
set_handle_type
Set native field handleType without native effects.
set_handle
Set native field handle without native effects.
set_name
Set native field name 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::ImportMemoryBufferCollectionFUCHSIA
Contract
Native structure VkImportMemoryBufferCollectionFUCHSIA.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
collection
collection: BufferCollectionFUCHSIANative field collection.
index
index: u32Native field index.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_collection
Set native field collection without native effects.
set_index
Set native field index 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::ImportMemoryFdInfoKHR
Contract
Native structure VkImportMemoryFdInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
handle_type
handle_type: ExternalMemoryHandleTypeFlagBitsNative field handleType.
fd
fd: i32Native field fd.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_handle_type
Set native field handleType without native effects.
set_fd
Set native field fd 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::ImportMemoryHostPointerInfoEXT
Contract
Native structure VkImportMemoryHostPointerInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
handle_type
handle_type: ExternalMemoryHandleTypeFlagBitsNative field handleType.
p_host_pointer
p_host_pointer: *mut c_voidNative field pHostPointer.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_handle_type
Set native field handleType without native effects.
set_host_pointer
Set native pointer pHostPointer 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::ImportMemoryMetalHandleInfoEXT
Contract
Native structure VkImportMemoryMetalHandleInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
handle_type
handle_type: ExternalMemoryHandleTypeFlagBitsNative field handleType.
handle
handle: *mut c_voidNative field handle.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_handle_type
Set native field handleType without native effects.
set_handle
Set native pointer handle 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::ImportMemoryWin32HandleInfoKHR
Contract
Native structure VkImportMemoryWin32HandleInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
handle_type
handle_type: ExternalMemoryHandleTypeFlagBitsNative field handleType.
handle
handle: HANDLENative field handle.
name
name: LPCWSTRNative field name.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_handle_type
Set native field handleType without native effects.
set_handle
Set native field handle without native effects.
set_name
Set native field name 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::ImportMemoryWin32HandleInfoNV
Contract
Native structure VkImportMemoryWin32HandleInfoNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
handle_type
handle_type: ExternalMemoryHandleTypeFlagsNVNative field handleType.
handle
handle: HANDLENative field handle.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_handle_type
Set native field handleType without native effects.
set_handle
Set native field handle 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::ImportMemoryZirconHandleInfoFUCHSIA
Contract
Native structure VkImportMemoryZirconHandleInfoFUCHSIA.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
handle_type
handle_type: ExternalMemoryHandleTypeFlagBitsNative field handleType.
handle
handle: zx_handle_tNative field handle.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_handle_type
Set native field handleType without native effects.
set_handle
Set native field handle 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::ImportMetalBufferInfoEXT
Contract
Native structure VkImportMetalBufferInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
mtl_buffer
mtl_buffer: MTLBuffer_idNative field mtlBuffer.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_mtl_buffer
Set native field mtlBuffer 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::ImportMetalIOSurfaceInfoEXT
Contract
Native structure VkImportMetalIOSurfaceInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
io_surface
io_surface: IOSurfaceRefNative field ioSurface.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_io_surface
Set native field ioSurface 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::ImportMetalSharedEventInfoEXT
Contract
Native structure VkImportMetalSharedEventInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
mtl_shared_event
mtl_shared_event: MTLSharedEvent_idNative field mtlSharedEvent.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_mtl_shared_event
Set native field mtlSharedEvent 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.