vk · Structs · D13
16 public declarations with native signatures and source-owned contracts.
Stvk::DisplayNativeHdrSurfaceCapabilitiesAMD
Contract
Native structure VkDisplayNativeHdrSurfaceCapabilitiesAMD.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
local_dimming_support
local_dimming_support: Bool32Native field localDimmingSupport.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_local_dimming_support
Set native field localDimmingSupport 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::DisplayPlaneAlphaFlagBitsKHR
Contract
Open integer representation of VkDisplayPlaneAlphaFlagBitsKHR.
Fields
0
0: u32Methods and associated items
OPAQUE_BIT_KHR
Native value VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR.
GLOBAL_BIT_KHR
Native value VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR.
PER_PIXEL_BIT_KHR
Native value VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR.
PER_PIXEL_PREMULTIPLIED_BIT_KHR
Native value VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR.
Khronos reference: VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_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::DisplayPlaneCapabilities2KHR
Contract
Native structure VkDisplayPlaneCapabilities2KHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
capabilities
capabilities: DisplayPlaneCapabilitiesKHRNative field capabilities.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_capabilities
Set native field capabilities 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::DisplayPlaneCapabilitiesKHR
#[repr(C)]pub struct DisplayPlaneCapabilitiesKHR {
pub supported_alpha: DisplayPlaneAlphaFlagsKHR,
pub min_src_position: Offset2D,
pub max_src_position: Offset2D,
pub min_src_extent: Extent2D,
pub max_src_extent: Extent2D,
pub min_dst_position: Offset2D,
pub max_dst_position: Offset2D,
pub min_dst_extent: Extent2D,
pub max_dst_extent: Extent2D,
}Contract
Native structure VkDisplayPlaneCapabilitiesKHR.
Fields
supported_alpha
supported_alpha: DisplayPlaneAlphaFlagsKHRNative field supportedAlpha.
min_src_position
min_src_position: Offset2DNative field minSrcPosition.
max_src_position
max_src_position: Offset2DNative field maxSrcPosition.
min_src_extent
min_src_extent: Extent2DNative field minSrcExtent.
max_src_extent
max_src_extent: Extent2DNative field maxSrcExtent.
min_dst_position
min_dst_position: Offset2DNative field minDstPosition.
max_dst_position
max_dst_position: Offset2DNative field maxDstPosition.
min_dst_extent
min_dst_extent: Extent2DNative field minDstExtent.
max_dst_extent
max_dst_extent: Extent2DNative field maxDstExtent.
Methods and associated items
new
Construct the record with its default native state.
set_supported_alpha
Set native field supportedAlpha without native effects.
set_min_src_position
Set native field minSrcPosition without native effects.
set_max_src_position
Set native field maxSrcPosition without native effects.
set_min_src_extent
Set native field minSrcExtent without native effects.
set_max_src_extent
Set native field maxSrcExtent without native effects.
set_min_dst_position
Set native field minDstPosition without native effects.
set_max_dst_position
Set native field maxDstPosition without native effects.
set_min_dst_extent
Set native field minDstExtent without native effects.
set_max_dst_extent
Set native field maxDstExtent without native effects.
clone
default
Stvk::DisplayPlaneInfo2KHR
Contract
Native structure VkDisplayPlaneInfo2KHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
mode
mode: DisplayModeKHRNative field mode.
plane_index
plane_index: u32Native field planeIndex.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_mode
Set native field mode without native effects.
set_plane_index
Set native field planeIndex 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::DisplayPlaneProperties2KHR
Contract
Native structure VkDisplayPlaneProperties2KHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
display_plane_properties
display_plane_properties: DisplayPlanePropertiesKHRNative field displayPlaneProperties.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_display_plane_properties
Set native field displayPlaneProperties 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::DisplayPlanePropertiesKHR
Contract
Native structure VkDisplayPlanePropertiesKHR.
Fields
current_display
current_display: DisplayKHRNative field currentDisplay.
current_stack_index
current_stack_index: u32Native field currentStackIndex.
Methods and associated items
new
Construct the record with its default native state.
set_current_display
Set native field currentDisplay without native effects.
set_current_stack_index
Set native field currentStackIndex without native effects.
clone
default
Stvk::DisplayPowerInfoEXT
Contract
Native structure VkDisplayPowerInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
power_state
power_state: DisplayPowerStateEXTNative field powerState.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_power_state
Set native field powerState 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::DisplayPowerStateEXT
Contract
Open integer representation of VkDisplayPowerStateEXT.
Fields
0
0: i32Methods and associated items
OFF_EXT
Native value VK_DISPLAY_POWER_STATE_OFF_EXT.
SUSPEND_EXT
Native value VK_DISPLAY_POWER_STATE_SUSPEND_EXT.
ON_EXT
Native value VK_DISPLAY_POWER_STATE_ON_EXT.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::DisplayPresentInfoKHR
Contract
Native structure VkDisplayPresentInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
src_rect
src_rect: Rect2DNative field srcRect.
dst_rect
dst_rect: Rect2DNative field dstRect.
persistent
persistent: Bool32Native field persistent.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_src_rect
Set native field srcRect without native effects.
set_dst_rect
Set native field dstRect without native effects.
set_persistent
Set native field persistent 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::DisplayProperties2KHR
Contract
Native structure VkDisplayProperties2KHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
display_properties
display_properties: DisplayPropertiesKHR<'a>Native field displayProperties.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_display_properties
Set native field displayProperties 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::DisplayPropertiesKHR
pub struct DisplayPropertiesKHR<'a> {
pub display: DisplayKHR,
pub display_name: *const c_char,
pub physical_dimensions: Extent2D,
pub physical_resolution: Extent2D,
pub supported_transforms: SurfaceTransformFlagsKHR,
pub plane_reorder_possible: Bool32,
pub persistent_content: Bool32,
/* private fields */
}Contract
Native structure VkDisplayPropertiesKHR.
Fields
display
display: DisplayKHRNative field display.
display_name
display_name: *const c_charNative field displayName.
physical_dimensions
physical_dimensions: Extent2DNative field physicalDimensions.
physical_resolution
physical_resolution: Extent2DNative field physicalResolution.
supported_transforms
supported_transforms: SurfaceTransformFlagsKHRNative field supportedTransforms.
plane_reorder_possible
plane_reorder_possible: Bool32Native field planeReorderPossible.
persistent_content
persistent_content: Bool32Native field persistentContent.
Methods and associated items
new
Construct the record with its default native state.
set_display
Set native field display without native effects.
set_display_name
Set native field displayName without native effects.
set_physical_dimensions
Set native field physicalDimensions without native effects.
set_physical_resolution
Set native field physicalResolution without native effects.
set_supported_transforms
Set native field supportedTransforms without native effects.
set_plane_reorder_possible
Set native field planeReorderPossible without native effects.
set_persistent_content
Set native field persistentContent without native effects.
clone
default
Stvk::DisplaySurfaceCreateFlagsKHR
Contract
Open integer representation of VkDisplaySurfaceCreateFlagsKHR.
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::DisplaySurfaceCreateInfoKHR
pub struct DisplaySurfaceCreateInfoKHR<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: DisplaySurfaceCreateFlagsKHR,
pub display_mode: DisplayModeKHR,
pub plane_index: u32,
pub plane_stack_index: u32,
pub transform: SurfaceTransformFlagBitsKHR,
pub global_alpha: f32,
pub alpha_mode: DisplayPlaneAlphaFlagBitsKHR,
pub image_extent: Extent2D,
/* private fields */
}Contract
Native structure VkDisplaySurfaceCreateInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: DisplaySurfaceCreateFlagsKHRNative field flags.
display_mode
display_mode: DisplayModeKHRNative field displayMode.
plane_index
plane_index: u32Native field planeIndex.
plane_stack_index
plane_stack_index: u32Native field planeStackIndex.
transform
transform: SurfaceTransformFlagBitsKHRNative field transform.
global_alpha
global_alpha: f32Native field globalAlpha.
alpha_mode
alpha_mode: DisplayPlaneAlphaFlagBitsKHRNative field alphaMode.
image_extent
image_extent: Extent2DNative field imageExtent.
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_display_mode
Set native field displayMode without native effects.
set_plane_index
Set native field planeIndex without native effects.
set_plane_stack_index
Set native field planeStackIndex without native effects.
set_transform
Set native field transform without native effects.
set_global_alpha
Set native field globalAlpha without native effects.
set_alpha_mode
Set native field alphaMode without native effects.
set_image_extent
Set native field imageExtent 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::DisplaySurfaceStereoCreateInfoNV
Contract
Native structure VkDisplaySurfaceStereoCreateInfoNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
stereo_type
stereo_type: DisplaySurfaceStereoTypeNVNative field stereoType.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_stereo_type
Set native field stereoType 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::DisplaySurfaceStereoTypeNV
Contract
Open integer representation of VkDisplaySurfaceStereoTypeNV.
Fields
0
0: i32Methods and associated items
NONE_NV
Native value VK_DISPLAY_SURFACE_STEREO_TYPE_NONE_NV.
ONBOARD_DIN_NV
Native value VK_DISPLAY_SURFACE_STEREO_TYPE_ONBOARD_DIN_NV.
Khronos reference: VK_DISPLAY_SURFACE_STEREO_TYPE_ONBOARD_DIN_NV
HDMI_3D_NV
Native value VK_DISPLAY_SURFACE_STEREO_TYPE_HDMI_3D_NV.
Khronos reference: VK_DISPLAY_SURFACE_STEREO_TYPE_HDMI_3D_NV
INBAND_DISPLAYPORT_NV
Native value VK_DISPLAY_SURFACE_STEREO_TYPE_INBAND_DISPLAYPORT_NV.
Khronos reference: VK_DISPLAY_SURFACE_STEREO_TYPE_INBAND_DISPLAYPORT_NV
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.