Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype VkDisplayPlaneAlphaFlagBitsKHR = VkDisplayPlaneAlphaFlagBitsKHR VkFlags
- pattern VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR :: VkDisplayPlaneAlphaFlagBitsKHR
- pattern VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR :: VkDisplayPlaneAlphaFlagBitsKHR
- pattern VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR :: VkDisplayPlaneAlphaFlagBitsKHR
- pattern VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR :: VkDisplayPlaneAlphaFlagBitsKHR
- newtype VkDisplayModeCreateFlagsKHR = VkDisplayModeCreateFlagsKHR VkFlags
- newtype VkDisplaySurfaceCreateFlagsKHR = VkDisplaySurfaceCreateFlagsKHR VkFlags
- pattern VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR :: VkStructureType
- pattern VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR :: VkStructureType
- pattern VK_OBJECT_TYPE_DISPLAY_KHR :: VkObjectType
- pattern VK_OBJECT_TYPE_DISPLAY_MODE_KHR :: VkObjectType
- pattern VK_KHR_DISPLAY_SPEC_VERSION :: Integral a => a
- pattern VK_KHR_DISPLAY_EXTENSION_NAME :: (Eq a, IsString a) => a
- type VkDisplayKHR = Ptr VkDisplayKHR_T
- type VkDisplayModeKHR = Ptr VkDisplayModeKHR_T
- vkGetPhysicalDeviceDisplayPropertiesKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("pPropertyCount" ::: Ptr Word32) -> ("pProperties" ::: Ptr VkDisplayPropertiesKHR) -> IO VkResult
- vkGetPhysicalDeviceDisplayPlanePropertiesKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("pPropertyCount" ::: Ptr Word32) -> ("pProperties" ::: Ptr VkDisplayPlanePropertiesKHR) -> IO VkResult
- vkGetDisplayPlaneSupportedDisplaysKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("planeIndex" ::: Word32) -> ("pDisplayCount" ::: Ptr Word32) -> ("pDisplays" ::: Ptr VkDisplayKHR) -> IO VkResult
- vkGetDisplayModePropertiesKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("display" ::: VkDisplayKHR) -> ("pPropertyCount" ::: Ptr Word32) -> ("pProperties" ::: Ptr VkDisplayModePropertiesKHR) -> IO VkResult
- vkCreateDisplayModeKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("display" ::: VkDisplayKHR) -> ("pCreateInfo" ::: Ptr VkDisplayModeCreateInfoKHR) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pMode" ::: Ptr VkDisplayModeKHR) -> IO VkResult
- vkGetDisplayPlaneCapabilitiesKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("mode" ::: VkDisplayModeKHR) -> ("planeIndex" ::: Word32) -> ("pCapabilities" ::: Ptr VkDisplayPlaneCapabilitiesKHR) -> IO VkResult
- vkCreateDisplayPlaneSurfaceKHR :: ("instance" ::: VkInstance) -> ("pCreateInfo" ::: Ptr VkDisplaySurfaceCreateInfoKHR) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSurface" ::: Ptr VkSurfaceKHR) -> IO VkResult
- data VkDisplayPropertiesKHR = VkDisplayPropertiesKHR {}
- data VkDisplayPlanePropertiesKHR = VkDisplayPlanePropertiesKHR {}
- data VkDisplayModeParametersKHR = VkDisplayModeParametersKHR {}
- data VkDisplayModePropertiesKHR = VkDisplayModePropertiesKHR {}
- data VkDisplayModeCreateInfoKHR = VkDisplayModeCreateInfoKHR {}
- data VkDisplayPlaneCapabilitiesKHR = VkDisplayPlaneCapabilitiesKHR {}
- data VkDisplaySurfaceCreateInfoKHR = VkDisplaySurfaceCreateInfoKHR {
- vkSType :: VkStructureType
- vkPNext :: Ptr ()
- vkFlags :: VkDisplaySurfaceCreateFlagsKHR
- vkDisplayMode :: VkDisplayModeKHR
- vkPlaneIndex :: Word32
- vkPlaneStackIndex :: Word32
- vkTransform :: VkSurfaceTransformFlagBitsKHR
- vkGlobalAlpha :: CFloat
- vkAlphaMode :: VkDisplayPlaneAlphaFlagBitsKHR
- vkImageExtent :: VkExtent2D
- type VkDisplayPlaneAlphaFlagsKHR = VkDisplayPlaneAlphaFlagBitsKHR
Documentation
newtype VkDisplayPlaneAlphaFlagBitsKHR Source #
VkDisplayPlaneAlphaFlagBitsKHR - Alpha blending type
See Also
Instances
pattern VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR :: VkDisplayPlaneAlphaFlagBitsKHR Source #
VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR
specifies that the source image
will be treated as opaque.
pattern VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR :: VkDisplayPlaneAlphaFlagBitsKHR Source #
VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR
specifies that a global alpha
value must be specified that will be applied to all pixels in the
source image.
pattern VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR :: VkDisplayPlaneAlphaFlagBitsKHR Source #
VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR
specifies that the alpha
value will be determined by the alpha channel of the source image’s
pixels. If the source format contains no alpha values, no blending will
be applied. The source alpha values are not premultiplied into the
source image’s other color channels.
pattern VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR :: VkDisplayPlaneAlphaFlagBitsKHR Source #
VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR
is equivalent
to VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR
, except the source alpha
values are assumed to be premultiplied into the source image’s other
color channels.
newtype VkDisplayModeCreateFlagsKHR Source #
Instances
newtype VkDisplaySurfaceCreateFlagsKHR Source #
Instances
pattern VK_OBJECT_TYPE_DISPLAY_KHR :: VkObjectType Source #
pattern VK_OBJECT_TYPE_DISPLAY_MODE_KHR :: VkObjectType Source #
pattern VK_KHR_DISPLAY_SPEC_VERSION :: Integral a => a Source #
pattern VK_KHR_DISPLAY_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
type VkDisplayKHR = Ptr VkDisplayKHR_T Source #
VkDisplayKHR - Opaque handle to a display object
See Also
VkDisplayPlanePropertiesKHR
, VkDisplayPropertiesKHR
,
vkAcquireXlibDisplayEXT
,
vkCreateDisplayModeKHR
,
vkDisplayPowerControlEXT
,
vkGetDisplayModePropertiesKHR
,
vkGetDisplayPlaneSupportedDisplaysKHR
,
vkGetRandROutputDisplayEXT
,
vkRegisterDisplayEventEXT
,
vkReleaseDisplayEXT
type VkDisplayModeKHR = Ptr VkDisplayModeKHR_T Source #
VkDisplayModeKHR - Opaque handle to a display mode object
See Also
VkDisplayModePropertiesKHR
, VkDisplaySurfaceCreateInfoKHR
,
vkCreateDisplayModeKHR
, vkGetDisplayPlaneCapabilitiesKHR
vkGetPhysicalDeviceDisplayPropertiesKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("pPropertyCount" ::: Ptr Word32) -> ("pProperties" ::: Ptr VkDisplayPropertiesKHR) -> IO VkResult Source #
vkGetPhysicalDeviceDisplayPropertiesKHR - Query information about the available displays
Parameters
physicalDevice
is a physical device.
pPropertyCount
is a pointer to an integer related to the number of display devices available or queried, as described below.pProperties
is eitherNULL
or a pointer to an array ofVkDisplayPropertiesKHR
structures.
Description
If pProperties
is NULL
, then the number of display devices available
for physicalDevice
is returned in pPropertyCount
. Otherwise,
pPropertyCount
must point to a variable set by the user to the
number of elements in the pProperties
array, and on return the
variable is overwritten with the number of structures actually written
to pProperties
. If the value of pPropertyCount
is less than the
number of display devices for physicalDevice
, at most pPropertyCount
structures will be written. If pPropertyCount
is smaller than the
number of display devices available for physicalDevice
,
VK_INCOMPLETE
will be returned instead of VK_SUCCESS
to indicate
that not all the available values were returned.
Valid Usage (Implicit)
physicalDevice
must be a validVkPhysicalDevice
handle
pPropertyCount
must be a valid pointer to auint32_t
value- If the value referenced by
pPropertyCount
is not0
, andpProperties
is notNULL
,pProperties
must be a valid pointer to an array ofpPropertyCount
VkDisplayPropertiesKHR
structures
Return Codes
[Success]
- VK_SUCCESS
VK_INCOMPLETE
[Failure]
- VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
See Also
vkGetPhysicalDeviceDisplayPlanePropertiesKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("pPropertyCount" ::: Ptr Word32) -> ("pProperties" ::: Ptr VkDisplayPlanePropertiesKHR) -> IO VkResult Source #
vkGetPhysicalDeviceDisplayPlanePropertiesKHR - Query the plane properties
Parameters
physicalDevice
is a physical device.
pPropertyCount
is a pointer to an integer related to the number of display planes available or queried, as described below.pProperties
is eitherNULL
or a pointer to an array ofVkDisplayPlanePropertiesKHR
structures.
Description
If pProperties
is NULL
, then the number of display planes available
for physicalDevice
is returned in pPropertyCount
. Otherwise,
pPropertyCount
must point to a variable set by the user to the
number of elements in the pProperties
array, and on return the
variable is overwritten with the number of structures actually written
to pProperties
. If the value of pPropertyCount
is less than the
number of display planes for physicalDevice
, at most pPropertyCount
structures will be written.
Valid Usage (Implicit)
physicalDevice
must be a validVkPhysicalDevice
handle
pPropertyCount
must be a valid pointer to auint32_t
value- If the value referenced by
pPropertyCount
is not0
, andpProperties
is notNULL
,pProperties
must be a valid pointer to an array ofpPropertyCount
VkDisplayPlanePropertiesKHR
structures
Return Codes
[Success]
- VK_SUCCESS
VK_INCOMPLETE
[Failure]
- VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
See Also
vkGetDisplayPlaneSupportedDisplaysKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("planeIndex" ::: Word32) -> ("pDisplayCount" ::: Ptr Word32) -> ("pDisplays" ::: Ptr VkDisplayKHR) -> IO VkResult Source #
vkGetDisplayPlaneSupportedDisplaysKHR - Query the list of displays a plane supports
Parameters
physicalDevice
is a physical device.
planeIndex
is the plane which the application wishes to use, and must be in the range [0, physical device plane count - 1].pDisplayCount
is a pointer to an integer related to the number of displays available or queried, as described below.pDisplays
is eitherNULL
or a pointer to an array ofVkDisplayKHR
handles.
Description
If pDisplays
is NULL
, then the number of displays usable with the
specified planeIndex
for physicalDevice
is returned in
pDisplayCount
. Otherwise, pDisplayCount
must point to a variable
set by the user to the number of elements in the pDisplays
array, and
on return the variable is overwritten with the number of handles
actually written to pDisplays
. If the value of pDisplayCount
is less
than the number of display planes for physicalDevice
, at most
pDisplayCount
handles will be written. If pDisplayCount
is smaller
than the number of displays usable with the specified planeIndex
for
physicalDevice
, VK_INCOMPLETE
will be returned instead of
VK_SUCCESS
to indicate that not all the available values were
returned.
Valid Usage
planeIndex
must be less than the number of display planes supported by the device as determined by callingvkGetPhysicalDeviceDisplayPlanePropertiesKHR
Valid Usage (Implicit)
physicalDevice
must be a validVkPhysicalDevice
handle
pDisplayCount
must be a valid pointer to auint32_t
value- If the value referenced by
pDisplayCount
is not0
, andpDisplays
is notNULL
,pDisplays
must be a valid pointer to an array ofpDisplayCount
VkDisplayKHR
handles
Return Codes
[Success]
- VK_SUCCESS
VK_INCOMPLETE
[Failure]
- VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
See Also
vkGetDisplayModePropertiesKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("display" ::: VkDisplayKHR) -> ("pPropertyCount" ::: Ptr Word32) -> ("pProperties" ::: Ptr VkDisplayModePropertiesKHR) -> IO VkResult Source #
vkGetDisplayModePropertiesKHR - Query the set of mode properties supported by the display
Parameters
physicalDevice
is the physical device associated withdisplay
.
display
is the display to query.pPropertyCount
is a pointer to an integer related to the number of display modes available or queried, as described below.pProperties
is eitherNULL
or a pointer to an array ofVkDisplayModePropertiesKHR
structures.
Description
If pProperties
is NULL
, then the number of display modes available
on the specified display
for physicalDevice
is returned in
pPropertyCount
. Otherwise, pPropertyCount
must point to a variable
set by the user to the number of elements in the pProperties
array,
and on return the variable is overwritten with the number of structures
actually written to pProperties
. If the value of pPropertyCount
is
less than the number of display modes for physicalDevice
, at most
pPropertyCount
structures will be written. If pPropertyCount
is
smaller than the number of display modes available on the specified
display
for physicalDevice
, VK_INCOMPLETE
will be returned instead
of VK_SUCCESS
to indicate that not all the available values were
returned.
Valid Usage (Implicit)
physicalDevice
must be a validVkPhysicalDevice
handle
display
must be a validVkDisplayKHR
handlepPropertyCount
must be a valid pointer to auint32_t
value- If the value referenced by
pPropertyCount
is not0
, andpProperties
is notNULL
,pProperties
must be a valid pointer to an array ofpPropertyCount
VkDisplayModePropertiesKHR
structures
Return Codes
[Success]
- VK_SUCCESS
VK_INCOMPLETE
[Failure]
- VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
See Also
vkCreateDisplayModeKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("display" ::: VkDisplayKHR) -> ("pCreateInfo" ::: Ptr VkDisplayModeCreateInfoKHR) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pMode" ::: Ptr VkDisplayModeKHR) -> IO VkResult Source #
vkCreateDisplayModeKHR - Create a display mode
Parameters
physicalDevice
is the physical device associated withdisplay
.
display
is the display to create an additional mode for.pCreateInfo
is aVkDisplayModeCreateInfoKHR
structure describing the new mode to create.pAllocator
is the allocator used for host memory allocated for the display mode object when there is no more specific allocator available (see Memory Allocation).pMode
returns the handle of the mode created.
Valid Usage (Implicit)
physicalDevice
must be a validVkPhysicalDevice
handle
display
must be a validVkDisplayKHR
handlepCreateInfo
must be a valid pointer to a validVkDisplayModeCreateInfoKHR
structure- If
pAllocator
is notNULL
,pAllocator
must be a valid pointer to a validVkAllocationCallbacks
structure pMode
must be a valid pointer to aVkDisplayModeKHR
handle
Host Synchronization
- Host access to
display
must be externally synchronized
Return Codes
[Success]
- VK_SUCCESS
[Failure]
- VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
VK_ERROR_INITIALIZATION_FAILED
See Also
VkAllocationCallbacks
,
VkDisplayKHR
, VkDisplayModeCreateInfoKHR
, VkDisplayModeKHR
,
VkPhysicalDevice
vkGetDisplayPlaneCapabilitiesKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("mode" ::: VkDisplayModeKHR) -> ("planeIndex" ::: Word32) -> ("pCapabilities" ::: Ptr VkDisplayPlaneCapabilitiesKHR) -> IO VkResult Source #
vkGetDisplayPlaneCapabilitiesKHR - Query capabilities of a mode and plane combination
Parameters
physicalDevice
is the physical device associated withdisplay
mode
is the display mode the application intends to program when using the specified plane. Note this parameter also implicitly specifies a display.planeIndex
is the plane which the application intends to use with the display, and is less than the number of display planes supported by the device.pCapabilities
is a pointer to aVkDisplayPlaneCapabilitiesKHR
structure in which the capabilities are returned.
Valid Usage (Implicit)
physicalDevice
must be a validVkPhysicalDevice
handle
mode
must be a validVkDisplayModeKHR
handlepCapabilities
must be a valid pointer to aVkDisplayPlaneCapabilitiesKHR
structure
Host Synchronization
- Host access to
mode
must be externally synchronized
Return Codes
[Success]
- VK_SUCCESS
[Failure]
- VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
See Also
VkDisplayModeKHR
, VkDisplayPlaneCapabilitiesKHR
,
VkPhysicalDevice
vkCreateDisplayPlaneSurfaceKHR :: ("instance" ::: VkInstance) -> ("pCreateInfo" ::: Ptr VkDisplaySurfaceCreateInfoKHR) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSurface" ::: Ptr VkSurfaceKHR) -> IO VkResult Source #
vkCreateDisplayPlaneSurfaceKHR - Create a
VkSurfaceKHR
structure
representing a display plane and mode
Parameters
instance
is the instance corresponding to the physical device the targeted display is on.
pCreateInfo
is a pointer to an instance of theVkDisplaySurfaceCreateInfoKHR
structure specifying which mode, plane, and other parameters to use, as described below.pAllocator
is the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation).pSurface
points to aVkSurfaceKHR
handle in which the created surface is returned.
Valid Usage (Implicit)
instance
must be a validVkInstance
handle
pCreateInfo
must be a valid pointer to a validVkDisplaySurfaceCreateInfoKHR
structure- If
pAllocator
is notNULL
,pAllocator
must be a valid pointer to a validVkAllocationCallbacks
structure pSurface
must be a valid pointer to aVkSurfaceKHR
handle
Return Codes
[Success]
- VK_SUCCESS
[Failure]
- VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
See Also
VkAllocationCallbacks
,
VkDisplaySurfaceCreateInfoKHR
,
VkInstance
,
VkSurfaceKHR
data VkDisplayPropertiesKHR Source #
VkDisplayPropertiesKHR - Structure describing an available display device
Description
Note
For devices which have no natural value to return here, implementations should return the maximum resolution supported.
supportedTransforms
tells which transforms are supported by this display. This will contain one or more of the bits fromVkSurfaceTransformFlagsKHR
.planeReorderPossible
tells whether the planes on this display can have their z order changed. If this isVK_TRUE
, the application can re-arrange the planes on this display in any order relative to each other.persistentContent
tells whether the display supports self-refresh/internal buffering. If this is true, the application can submit persistent present operations on swapchains created against this display.
Note
Persistent presents may have higher latency, and may use less power when the screen content is updated infrequently, or when only a portion of the screen needs to be updated in most frames.
See Also
VkBool32
, VkDisplayKHR
,
VkExtent2D
,
VkSurfaceTransformFlagsKHR
,
vkGetPhysicalDeviceDisplayPropertiesKHR
VkDisplayPropertiesKHR | |
|
Instances
Eq VkDisplayPropertiesKHR Source # | |
Show VkDisplayPropertiesKHR Source # | |
showsPrec :: Int -> VkDisplayPropertiesKHR -> ShowS # show :: VkDisplayPropertiesKHR -> String # showList :: [VkDisplayPropertiesKHR] -> ShowS # | |
Storable VkDisplayPropertiesKHR Source # | |
sizeOf :: VkDisplayPropertiesKHR -> Int # alignment :: VkDisplayPropertiesKHR -> Int # peekElemOff :: Ptr VkDisplayPropertiesKHR -> Int -> IO VkDisplayPropertiesKHR # pokeElemOff :: Ptr VkDisplayPropertiesKHR -> Int -> VkDisplayPropertiesKHR -> IO () # peekByteOff :: Ptr b -> Int -> IO VkDisplayPropertiesKHR # pokeByteOff :: Ptr b -> Int -> VkDisplayPropertiesKHR -> IO () # peek :: Ptr VkDisplayPropertiesKHR -> IO VkDisplayPropertiesKHR # poke :: Ptr VkDisplayPropertiesKHR -> VkDisplayPropertiesKHR -> IO () # |
data VkDisplayPlanePropertiesKHR Source #
VkDisplayPlanePropertiesKHR - Structure describing display plane properties
See Also
VkDisplayPlanePropertiesKHR | |
|
Instances
data VkDisplayModeParametersKHR Source #
VkDisplayModeParametersKHR - Structure describing display parameters associated with a display mode
Description
Note
For example, a 60Hz display mode would report a refreshRate
of 60,000.
See Also
VkDisplayModeCreateInfoKHR
, VkDisplayModePropertiesKHR
,
VkExtent2D
VkDisplayModeParametersKHR | |
|
Instances
data VkDisplayModePropertiesKHR Source #
VkDisplayModePropertiesKHR - Structure describing display mode properties
See Also
VkDisplayModeKHR
, VkDisplayModeParametersKHR
,
vkGetDisplayModePropertiesKHR
VkDisplayModePropertiesKHR | |
|
Instances
data VkDisplayModeCreateInfoKHR Source #
VkDisplayModeCreateInfoKHR - Structure specifying parameters of a newly created display mode object
Valid Usage
- The
width
andheight
members of thevisibleRegion
member ofparameters
must be greater than0
- The
refreshRate
member ofparameters
must be greater than0
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR
pNext
must beNULL
flags
must be0
See Also
VkDisplayModeCreateFlagsKHR
, VkDisplayModeParametersKHR
,
VkStructureType
, vkCreateDisplayModeKHR
VkDisplayModeCreateInfoKHR | |
|
Instances
data VkDisplayPlaneCapabilitiesKHR Source #
VkDisplayPlaneCapabilitiesKHR - Structure describing capabilities of a mode and plane combination
Description
The minimum and maximum position and extent fields describe the
implementation limits, if any, as they apply to the specified display
mode and plane. Vendors may support displaying a subset of a
swapchain’s presentable images on the specified display plane. This is
expressed by returning minSrcPosition
, maxSrcPosition
,
minSrcExtent
, and maxSrcExtent
values that indicate a range of
possible positions and sizes may be used to specify the region within
the presentable images that source pixels will be read from when
creating a swapchain on the specified display mode and plane.
Vendors may also support mapping the presentable images’ content to a
subset or superset of the visible region in the specified display mode.
This is expressed by returning minDstPosition
, maxDstPosition
,
minDstExtent
and maxDstExtent
values that indicate a range of
possible positions and sizes may be used to describe the region within
the display mode that the source pixels will be mapped to.
Other vendors may support only a 1-1 mapping between pixels in the
presentable images and the display mode. This may be indicated by
returning (0,0) for minSrcPosition
, maxSrcPosition
,
minDstPosition
, and maxDstPosition
, and (display mode width, display
mode height) for minSrcExtent
, maxSrcExtent
, minDstExtent
, and
maxDstExtent
.
These values indicate the limits of the implementation’s individual
fields. Not all combinations of values within the offset and extent
ranges returned in VkDisplayPlaneCapabilitiesKHR
are guaranteed to be
supported. Vendors may still fail presentation requests that specify
unsupported combinations.
See Also
VkDisplayPlaneAlphaFlagsKHR
,
VkExtent2D
,
VkOffset2D
,
vkGetDisplayPlaneCapabilitiesKHR
VkDisplayPlaneCapabilitiesKHR | |
|
Instances
data VkDisplaySurfaceCreateInfoKHR Source #
VkDisplaySurfaceCreateInfoKHR - Structure specifying parameters of a newly created display plane surface object
Description
Note
Creating a display surface must not modify the state of the displays, planes, or other resources it names. For example, it must not apply the specified mode to be set on the associated display. Application of display configuration occurs as a side effect of presenting to a display surface.
Valid Usage
planeIndex
must be less than the number of display planes supported by the device as determined by callingvkGetPhysicalDeviceDisplayPlanePropertiesKHR
- If the
planeReorderPossible
member of theVkDisplayPropertiesKHR
structure returned byvkGetPhysicalDeviceDisplayPropertiesKHR
for the display corresponding todisplayMode
isVK_TRUE
thenplaneStackIndex
must be less than the number of display planes supported by the device as determined by callingvkGetPhysicalDeviceDisplayPlanePropertiesKHR
; otherwiseplaneStackIndex
must equal thecurrentStackIndex
member ofVkDisplayPlanePropertiesKHR
returned byvkGetPhysicalDeviceDisplayPlanePropertiesKHR
for the display plane corresponding todisplayMode
- If
alphaMode
isVK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR
thenglobalAlpha
must be between0
and1
, inclusive alphaMode
must be0
or one of the bits present in thesupportedAlpha
member ofVkDisplayPlaneCapabilitiesKHR
returned byvkGetDisplayPlaneCapabilitiesKHR
for the display plane corresponding todisplayMode
- The
width
andheight
members ofimageExtent
must be less than themaxImageDimensions2D
member ofVkPhysicalDeviceLimits
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR
pNext
must beNULL
flags
must be0
displayMode
must be a validVkDisplayModeKHR
handletransform
must be a validVkSurfaceTransformFlagBitsKHR
valuealphaMode
must be a validVkDisplayPlaneAlphaFlagBitsKHR
value
See Also
VkDisplayModeKHR
, VkDisplayPlaneAlphaFlagBitsKHR
,
VkDisplaySurfaceCreateFlagsKHR
,
VkExtent2D
,
VkStructureType
,
VkSurfaceTransformFlagBitsKHR
,
vkCreateDisplayPlaneSurfaceKHR
VkDisplaySurfaceCreateInfoKHR | |
|
Instances
type VkDisplayPlaneAlphaFlagsKHR = VkDisplayPlaneAlphaFlagBitsKHR Source #
VkDisplayPlaneAlphaFlagsKHR - Bitmask of VkDisplayPlaneAlphaFlagBitsKHR
Description
VkDisplayPlaneAlphaFlagsKHR
is a bitmask type for setting a mask of
zero or more VkDisplayPlaneAlphaFlagBitsKHR
.
See Also
VkDisplayPlaneAlphaFlagBitsKHR
, VkDisplayPlaneCapabilitiesKHR