vk · Structs · H1
9 public declarations with native signatures and source-owned contracts.
Stvk::HdrMetadataEXT
pub struct HdrMetadataEXT<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub display_primary_red: XYColorEXT,
pub display_primary_green: XYColorEXT,
pub display_primary_blue: XYColorEXT,
pub white_point: XYColorEXT,
pub max_luminance: f32,
pub min_luminance: f32,
pub max_content_light_level: f32,
pub max_frame_average_light_level: f32,
/* private fields */
}Contract
Native structure VkHdrMetadataEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
display_primary_red
display_primary_red: XYColorEXTNative field displayPrimaryRed.
display_primary_green
display_primary_green: XYColorEXTNative field displayPrimaryGreen.
display_primary_blue
display_primary_blue: XYColorEXTNative field displayPrimaryBlue.
white_point
white_point: XYColorEXTNative field whitePoint.
max_luminance
max_luminance: f32Native field maxLuminance.
min_luminance
min_luminance: f32Native field minLuminance.
max_content_light_level
max_content_light_level: f32Native field maxContentLightLevel.
max_frame_average_light_level
max_frame_average_light_level: f32Native field maxFrameAverageLightLevel.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_display_primary_red
Set native field displayPrimaryRed without native effects.
set_display_primary_green
Set native field displayPrimaryGreen without native effects.
set_display_primary_blue
Set native field displayPrimaryBlue without native effects.
set_white_point
Set native field whitePoint without native effects.
set_max_luminance
Set native field maxLuminance without native effects.
set_min_luminance
Set native field minLuminance without native effects.
set_max_content_light_level
Set native field maxContentLightLevel without native effects.
set_max_frame_average_light_level
Set native field maxFrameAverageLightLevel 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::HdrVividDynamicMetadataHUAWEI
Contract
Native structure VkHdrVividDynamicMetadataHUAWEI.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
dynamic_metadata_size
dynamic_metadata_size: usizeNative field dynamicMetadataSize.
p_dynamic_metadata
p_dynamic_metadata: *const c_voidNative field pDynamicMetadata.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_dynamic_metadata_size
Set native count dynamicMetadataSize 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_dynamic_metadata
Borrow pDynamicMetadata and set checked native byte size dynamicMetadataSize.
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::HeadlessSurfaceCreateFlagsEXT
Contract
Open integer representation of VkHeadlessSurfaceCreateFlagsEXT.
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::HeadlessSurfaceCreateInfoEXT
Contract
Native structure VkHeadlessSurfaceCreateInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: HeadlessSurfaceCreateFlagsEXTNative field flags.
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.
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::HostAddressRangeConstEXT
Contract
Native structure VkHostAddressRangeConstEXT.
Fields
address
address: *const c_voidNative field address.
size
size: usizeNative field size.
Methods and associated items
new
Construct the record with its default native state.
set_address
Borrow address and set checked native byte size size.
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_size
Set native count size 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.
clone
default
Stvk::HostAddressRangeEXT
Contract
Native structure VkHostAddressRangeEXT.
Fields
address
address: *mut c_voidNative field address.
size
size: usizeNative field size.
Methods and associated items
new
Construct the record with its default native state.
set_address
Borrow address and set checked native byte size size.
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_size
Set native count size 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.
default
Stvk::HostImageCopyDevicePerformanceQuery
Contract
Native structure VkHostImageCopyDevicePerformanceQuery.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
optimal_device_access
optimal_device_access: Bool32Native field optimalDeviceAccess.
identical_memory_layout
identical_memory_layout: Bool32Native field identicalMemoryLayout.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_optimal_device_access
Set native field optimalDeviceAccess without native effects.
set_identical_memory_layout
Set native field identicalMemoryLayout 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::HostImageCopyFlagBits
Contract
Open integer representation of VkHostImageCopyFlagBits.
Fields
0
0: u32Methods and associated items
MEMCPY_BIT
Native value VK_HOST_IMAGE_COPY_MEMCPY_BIT.
MEMCPY
Native value VK_HOST_IMAGE_COPY_MEMCPY.
MEMCPY_BIT_EXT
Native value VK_HOST_IMAGE_COPY_MEMCPY_BIT_EXT.
MEMCPY_EXT
Native value VK_HOST_IMAGE_COPY_MEMCPY_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::HostImageLayoutTransitionInfo
Contract
Native structure VkHostImageLayoutTransitionInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
image
image: ImageNative field image.
old_layout
old_layout: ImageLayoutNative field oldLayout.
new_layout
new_layout: ImageLayoutNative field newLayout.
subresource_range
subresource_range: ImageSubresourceRangeNative field subresourceRange.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_image
Set native field image without native effects.
set_old_layout
Set native field oldLayout without native effects.
set_new_layout
Set native field newLayout without native effects.
set_subresource_range
Set native field subresourceRange 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.