| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Vulkan.Extensions.VK_KHR_display
Synopsis
- getPhysicalDeviceDisplayPropertiesKHR :: forall io. MonadIO io => PhysicalDevice -> io (Result, "properties" ::: Vector DisplayPropertiesKHR)
- getPhysicalDeviceDisplayPlanePropertiesKHR :: forall io. MonadIO io => PhysicalDevice -> io (Result, "properties" ::: Vector DisplayPlanePropertiesKHR)
- getDisplayPlaneSupportedDisplaysKHR :: forall io. MonadIO io => PhysicalDevice -> ("planeIndex" ::: Word32) -> io (Result, "displays" ::: Vector DisplayKHR)
- getDisplayModePropertiesKHR :: forall io. MonadIO io => PhysicalDevice -> DisplayKHR -> io (Result, "properties" ::: Vector DisplayModePropertiesKHR)
- createDisplayModeKHR :: forall io. MonadIO io => PhysicalDevice -> DisplayKHR -> DisplayModeCreateInfoKHR -> ("allocator" ::: Maybe AllocationCallbacks) -> io DisplayModeKHR
- getDisplayPlaneCapabilitiesKHR :: forall io. MonadIO io => PhysicalDevice -> DisplayModeKHR -> ("planeIndex" ::: Word32) -> io DisplayPlaneCapabilitiesKHR
- createDisplayPlaneSurfaceKHR :: forall io. MonadIO io => Instance -> DisplaySurfaceCreateInfoKHR -> ("allocator" ::: Maybe AllocationCallbacks) -> io SurfaceKHR
- data DisplayPropertiesKHR = DisplayPropertiesKHR {}
- data DisplayPlanePropertiesKHR = DisplayPlanePropertiesKHR {}
- data DisplayModeParametersKHR = DisplayModeParametersKHR {}
- data DisplayModePropertiesKHR = DisplayModePropertiesKHR {}
- data DisplayModeCreateInfoKHR = DisplayModeCreateInfoKHR {}
- data DisplayPlaneCapabilitiesKHR = DisplayPlaneCapabilitiesKHR {}
- data DisplaySurfaceCreateInfoKHR = DisplaySurfaceCreateInfoKHR {}
- newtype DisplayModeCreateFlagsKHR = DisplayModeCreateFlagsKHR Flags
- newtype DisplaySurfaceCreateFlagsKHR = DisplaySurfaceCreateFlagsKHR Flags
- newtype DisplayPlaneAlphaFlagBitsKHR where
- DisplayPlaneAlphaFlagBitsKHR Flags
- pattern DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR :: DisplayPlaneAlphaFlagBitsKHR
- pattern DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR :: DisplayPlaneAlphaFlagBitsKHR
- pattern DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR :: DisplayPlaneAlphaFlagBitsKHR
- pattern DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR :: DisplayPlaneAlphaFlagBitsKHR
- type DisplayPlaneAlphaFlagsKHR = DisplayPlaneAlphaFlagBitsKHR
- type KHR_DISPLAY_SPEC_VERSION = 23
- pattern KHR_DISPLAY_SPEC_VERSION :: forall a. Integral a => a
- type KHR_DISPLAY_EXTENSION_NAME = "VK_KHR_display"
- pattern KHR_DISPLAY_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
- newtype DisplayKHR = DisplayKHR Word64
- newtype DisplayModeKHR = DisplayModeKHR Word64
- newtype SurfaceKHR = SurfaceKHR Word64
- newtype SurfaceTransformFlagBitsKHR where
- SurfaceTransformFlagBitsKHR Flags
- pattern SURFACE_TRANSFORM_IDENTITY_BIT_KHR :: SurfaceTransformFlagBitsKHR
- pattern SURFACE_TRANSFORM_ROTATE_90_BIT_KHR :: SurfaceTransformFlagBitsKHR
- pattern SURFACE_TRANSFORM_ROTATE_180_BIT_KHR :: SurfaceTransformFlagBitsKHR
- pattern SURFACE_TRANSFORM_ROTATE_270_BIT_KHR :: SurfaceTransformFlagBitsKHR
- pattern SURFACE_TRANSFORM_HORIZONTAL_MIRROR_BIT_KHR :: SurfaceTransformFlagBitsKHR
- pattern SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_90_BIT_KHR :: SurfaceTransformFlagBitsKHR
- pattern SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180_BIT_KHR :: SurfaceTransformFlagBitsKHR
- pattern SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_270_BIT_KHR :: SurfaceTransformFlagBitsKHR
- pattern SURFACE_TRANSFORM_INHERIT_BIT_KHR :: SurfaceTransformFlagBitsKHR
- type SurfaceTransformFlagsKHR = SurfaceTransformFlagBitsKHR
Documentation
getPhysicalDeviceDisplayPropertiesKHR :: forall io. MonadIO io => PhysicalDevice -> io (Result, "properties" ::: Vector DisplayPropertiesKHR) Source #
vkGetPhysicalDeviceDisplayPropertiesKHR - Query information about the available displays
Parameters
physicalDeviceis a physical device.
pPropertyCountis a pointer to an integer related to the number of display devices available or queried, as described below.pPropertiesis eitherNULLor a pointer to an array ofDisplayPropertiesKHRstructures.
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,
INCOMPLETE will be returned instead of
SUCCESS to indicate that not all the
available values were returned.
Valid Usage (Implicit)
physicalDevicemust be a validPhysicalDevicehandle
pPropertyCountmust be a valid pointer to auint32_tvalue- If the value referenced by
pPropertyCountis not0, andpPropertiesis notNULL,pPropertiesmust be a valid pointer to an array ofpPropertyCountDisplayPropertiesKHRstructures
Return Codes
See Also
getPhysicalDeviceDisplayPlanePropertiesKHR :: forall io. MonadIO io => PhysicalDevice -> io (Result, "properties" ::: Vector DisplayPlanePropertiesKHR) Source #
vkGetPhysicalDeviceDisplayPlanePropertiesKHR - Query the plane properties
Parameters
physicalDeviceis a physical device.
pPropertyCountis a pointer to an integer related to the number of display planes available or queried, as described below.pPropertiesis eitherNULLor a pointer to an array ofDisplayPlanePropertiesKHRstructures.
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)
physicalDevicemust be a validPhysicalDevicehandle
pPropertyCountmust be a valid pointer to auint32_tvalue- If the value referenced by
pPropertyCountis not0, andpPropertiesis notNULL,pPropertiesmust be a valid pointer to an array ofpPropertyCountDisplayPlanePropertiesKHRstructures
Return Codes
See Also
getDisplayPlaneSupportedDisplaysKHR :: forall io. MonadIO io => PhysicalDevice -> ("planeIndex" ::: Word32) -> io (Result, "displays" ::: Vector DisplayKHR) Source #
vkGetDisplayPlaneSupportedDisplaysKHR - Query the list of displays a plane supports
Parameters
physicalDeviceis a physical device.
planeIndexis the plane which the application wishes to use, and must be in the range [0, physical device plane count - 1].pDisplayCountis a pointer to an integer related to the number of displays available or queried, as described below.pDisplaysis eitherNULLor a pointer to an array ofDisplayKHRhandles.
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, INCOMPLETE will be
returned instead of SUCCESS to indicate
that not all the available values were returned.
Valid Usage
planeIndexmust be less than the number of display planes supported by the device as determined by callinggetPhysicalDeviceDisplayPlanePropertiesKHR
Valid Usage (Implicit)
physicalDevicemust be a validPhysicalDevicehandle
pDisplayCountmust be a valid pointer to auint32_tvalue- If the value referenced by
pDisplayCountis not0, andpDisplaysis notNULL,pDisplaysmust be a valid pointer to an array ofpDisplayCountDisplayKHRhandles
Return Codes
See Also
getDisplayModePropertiesKHR :: forall io. MonadIO io => PhysicalDevice -> DisplayKHR -> io (Result, "properties" ::: Vector DisplayModePropertiesKHR) Source #
vkGetDisplayModePropertiesKHR - Query the set of mode properties supported by the display
Parameters
physicalDeviceis the physical device associated withdisplay.
displayis the display to query.pPropertyCountis a pointer to an integer related to the number of display modes available or queried, as described below.pPropertiesis eitherNULLor a pointer to an array ofDisplayModePropertiesKHRstructures.
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, INCOMPLETE
will be returned instead of SUCCESS to
indicate that not all the available values were returned.
Valid Usage (Implicit)
physicalDevicemust be a validPhysicalDevicehandle
displaymust be a validDisplayKHRhandlepPropertyCountmust be a valid pointer to auint32_tvalue- If the value referenced by
pPropertyCountis not0, andpPropertiesis notNULL,pPropertiesmust be a valid pointer to an array ofpPropertyCountDisplayModePropertiesKHRstructures displaymust have been created, allocated, or retrieved fromphysicalDevice
Return Codes
See Also
createDisplayModeKHR :: forall io. MonadIO io => PhysicalDevice -> DisplayKHR -> DisplayModeCreateInfoKHR -> ("allocator" ::: Maybe AllocationCallbacks) -> io DisplayModeKHR Source #
vkCreateDisplayModeKHR - Create a display mode
Parameters
physicalDeviceis the physical device associated withdisplay.
displayis the display to create an additional mode for.pCreateInfois aDisplayModeCreateInfoKHRstructure describing the new mode to create.pAllocatoris the allocator used for host memory allocated for the display mode object when there is no more specific allocator available (see Memory Allocation).pModereturns the handle of the mode created.
Valid Usage (Implicit)
physicalDevicemust be a validPhysicalDevicehandle
displaymust be a validDisplayKHRhandlepCreateInfomust be a valid pointer to a validDisplayModeCreateInfoKHRstructure- If
pAllocatoris notNULL,pAllocatormust be a valid pointer to a validAllocationCallbacksstructure pModemust be a valid pointer to aDisplayModeKHRhandledisplaymust have been created, allocated, or retrieved fromphysicalDevice
Host Synchronization
- Host access to
displaymust be externally synchronized
Return Codes
See Also
AllocationCallbacks,
DisplayKHR, DisplayModeCreateInfoKHR,
DisplayModeKHR,
PhysicalDevice
getDisplayPlaneCapabilitiesKHR :: forall io. MonadIO io => PhysicalDevice -> DisplayModeKHR -> ("planeIndex" ::: Word32) -> io DisplayPlaneCapabilitiesKHR Source #
vkGetDisplayPlaneCapabilitiesKHR - Query capabilities of a mode and plane combination
Parameters
physicalDeviceis the physical device associated withdisplay
modeis the display mode the application intends to program when using the specified plane. Note this parameter also implicitly specifies a display.planeIndexis the plane which the application intends to use with the display, and is less than the number of display planes supported by the device.pCapabilitiesis a pointer to aDisplayPlaneCapabilitiesKHRstructure in which the capabilities are returned.
Valid Usage (Implicit)
physicalDevicemust be a validPhysicalDevicehandle
modemust be a validDisplayModeKHRhandlepCapabilitiesmust be a valid pointer to aDisplayPlaneCapabilitiesKHRstructure
Host Synchronization
- Host access to
modemust be externally synchronized
Return Codes
See Also
createDisplayPlaneSurfaceKHR :: forall io. MonadIO io => Instance -> DisplaySurfaceCreateInfoKHR -> ("allocator" ::: Maybe AllocationCallbacks) -> io SurfaceKHR Source #
vkCreateDisplayPlaneSurfaceKHR - Create a
SurfaceKHR structure representing a display
plane and mode
Parameters
instanceis the instance corresponding to the physical device the targeted display is on.
pCreateInfois a pointer to aDisplaySurfaceCreateInfoKHRstructure specifying which mode, plane, and other parameters to use, as described below.pAllocatoris the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation).pSurfaceis a pointer to aSurfaceKHRhandle in which the created surface is returned.
Valid Usage (Implicit)
instancemust be a validInstancehandle
pCreateInfomust be a valid pointer to a validDisplaySurfaceCreateInfoKHRstructure- If
pAllocatoris notNULL,pAllocatormust be a valid pointer to a validAllocationCallbacksstructure pSurfacemust be a valid pointer to aSurfaceKHRhandle
Return Codes
See Also
AllocationCallbacks,
DisplaySurfaceCreateInfoKHR, Instance,
SurfaceKHR
data DisplayPropertiesKHR 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.
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
Bool32, DisplayKHR,
DisplayProperties2KHR,
Extent2D,
SurfaceTransformFlagsKHR,
getPhysicalDeviceDisplayPropertiesKHR
Constructors
| DisplayPropertiesKHR | |
Fields
| |
Instances
| Show DisplayPropertiesKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods showsPrec :: Int -> DisplayPropertiesKHR -> ShowS # show :: DisplayPropertiesKHR -> String # showList :: [DisplayPropertiesKHR] -> ShowS # | |
| FromCStruct DisplayPropertiesKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods peekCStruct :: Ptr DisplayPropertiesKHR -> IO DisplayPropertiesKHR Source # | |
| ToCStruct DisplayPropertiesKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods withCStruct :: DisplayPropertiesKHR -> (Ptr DisplayPropertiesKHR -> IO b) -> IO b Source # pokeCStruct :: Ptr DisplayPropertiesKHR -> DisplayPropertiesKHR -> IO b -> IO b Source # withZeroCStruct :: (Ptr DisplayPropertiesKHR -> IO b) -> IO b Source # pokeZeroCStruct :: Ptr DisplayPropertiesKHR -> IO b -> IO b Source # cStructSize :: Int Source # | |
| Zero DisplayPropertiesKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods | |
data DisplayPlanePropertiesKHR Source #
VkDisplayPlanePropertiesKHR - Structure describing display plane properties
See Also
DisplayKHR,
DisplayPlaneProperties2KHR,
getPhysicalDeviceDisplayPlanePropertiesKHR
Constructors
| DisplayPlanePropertiesKHR | |
Fields
| |
Instances
data DisplayModeParametersKHR 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.
Valid Usage
- The
widthmember ofvisibleRegionmust be greater than0
- The
heightmember ofvisibleRegionmust be greater than0 refreshRatemust be greater than0
See Also
DisplayModeCreateInfoKHR, DisplayModePropertiesKHR,
Extent2D
Constructors
| DisplayModeParametersKHR | |
Fields
| |
Instances
| Show DisplayModeParametersKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods showsPrec :: Int -> DisplayModeParametersKHR -> ShowS # show :: DisplayModeParametersKHR -> String # showList :: [DisplayModeParametersKHR] -> ShowS # | |
| FromCStruct DisplayModeParametersKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods peekCStruct :: Ptr DisplayModeParametersKHR -> IO DisplayModeParametersKHR Source # | |
| ToCStruct DisplayModeParametersKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods withCStruct :: DisplayModeParametersKHR -> (Ptr DisplayModeParametersKHR -> IO b) -> IO b Source # pokeCStruct :: Ptr DisplayModeParametersKHR -> DisplayModeParametersKHR -> IO b -> IO b Source # withZeroCStruct :: (Ptr DisplayModeParametersKHR -> IO b) -> IO b Source # pokeZeroCStruct :: Ptr DisplayModeParametersKHR -> IO b -> IO b Source # cStructSize :: Int Source # | |
| Zero DisplayModeParametersKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods | |
data DisplayModePropertiesKHR Source #
VkDisplayModePropertiesKHR - Structure describing display mode properties
See Also
DisplayModeKHR, DisplayModeParametersKHR,
DisplayModeProperties2KHR,
getDisplayModePropertiesKHR
Constructors
| DisplayModePropertiesKHR | |
Fields
| |
Instances
| Show DisplayModePropertiesKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods showsPrec :: Int -> DisplayModePropertiesKHR -> ShowS # show :: DisplayModePropertiesKHR -> String # showList :: [DisplayModePropertiesKHR] -> ShowS # | |
| FromCStruct DisplayModePropertiesKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods peekCStruct :: Ptr DisplayModePropertiesKHR -> IO DisplayModePropertiesKHR Source # | |
| ToCStruct DisplayModePropertiesKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods withCStruct :: DisplayModePropertiesKHR -> (Ptr DisplayModePropertiesKHR -> IO b) -> IO b Source # pokeCStruct :: Ptr DisplayModePropertiesKHR -> DisplayModePropertiesKHR -> IO b -> IO b Source # withZeroCStruct :: (Ptr DisplayModePropertiesKHR -> IO b) -> IO b Source # pokeZeroCStruct :: Ptr DisplayModePropertiesKHR -> IO b -> IO b Source # cStructSize :: Int Source # | |
| Zero DisplayModePropertiesKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods | |
data DisplayModeCreateInfoKHR Source #
VkDisplayModeCreateInfoKHR - Structure specifying parameters of a newly created display mode object
Valid Usage (Implicit)
See Also
DisplayModeCreateFlagsKHR, DisplayModeParametersKHR,
StructureType,
createDisplayModeKHR
Constructors
| DisplayModeCreateInfoKHR | |
Fields
| |
Instances
| Show DisplayModeCreateInfoKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods showsPrec :: Int -> DisplayModeCreateInfoKHR -> ShowS # show :: DisplayModeCreateInfoKHR -> String # showList :: [DisplayModeCreateInfoKHR] -> ShowS # | |
| FromCStruct DisplayModeCreateInfoKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods peekCStruct :: Ptr DisplayModeCreateInfoKHR -> IO DisplayModeCreateInfoKHR Source # | |
| ToCStruct DisplayModeCreateInfoKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods withCStruct :: DisplayModeCreateInfoKHR -> (Ptr DisplayModeCreateInfoKHR -> IO b) -> IO b Source # pokeCStruct :: Ptr DisplayModeCreateInfoKHR -> DisplayModeCreateInfoKHR -> IO b -> IO b Source # withZeroCStruct :: (Ptr DisplayModeCreateInfoKHR -> IO b) -> IO b Source # pokeZeroCStruct :: Ptr DisplayModeCreateInfoKHR -> IO b -> IO b Source # cStructSize :: Int Source # | |
| Zero DisplayModeCreateInfoKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods | |
data DisplayPlaneCapabilitiesKHR 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 DisplayPlaneCapabilitiesKHR are guaranteed to be
supported. Presentation requests specifying unsupported combinations
may fail.
See Also
DisplayPlaneAlphaFlagsKHR,
DisplayPlaneCapabilities2KHR,
Extent2D,
Offset2D, getDisplayPlaneCapabilitiesKHR
Constructors
| DisplayPlaneCapabilitiesKHR | |
Fields
| |
Instances
| Show DisplayPlaneCapabilitiesKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods showsPrec :: Int -> DisplayPlaneCapabilitiesKHR -> ShowS # show :: DisplayPlaneCapabilitiesKHR -> String # showList :: [DisplayPlaneCapabilitiesKHR] -> ShowS # | |
| FromCStruct DisplayPlaneCapabilitiesKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display | |
| ToCStruct DisplayPlaneCapabilitiesKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods withCStruct :: DisplayPlaneCapabilitiesKHR -> (Ptr DisplayPlaneCapabilitiesKHR -> IO b) -> IO b Source # pokeCStruct :: Ptr DisplayPlaneCapabilitiesKHR -> DisplayPlaneCapabilitiesKHR -> IO b -> IO b Source # withZeroCStruct :: (Ptr DisplayPlaneCapabilitiesKHR -> IO b) -> IO b Source # pokeZeroCStruct :: Ptr DisplayPlaneCapabilitiesKHR -> IO b -> IO b Source # cStructSize :: Int Source # | |
| Zero DisplayPlaneCapabilitiesKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods | |
data DisplaySurfaceCreateInfoKHR 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
planeIndexmust be less than the number of display planes supported by the device as determined by callinggetPhysicalDeviceDisplayPlanePropertiesKHR
- If the
planeReorderPossiblemember of theDisplayPropertiesKHRstructure returned bygetPhysicalDeviceDisplayPropertiesKHRfor the display corresponding todisplayModeisTRUEthenplaneStackIndexmust be less than the number of display planes supported by the device as determined by callinggetPhysicalDeviceDisplayPlanePropertiesKHR; otherwiseplaneStackIndexmust equal thecurrentStackIndexmember ofDisplayPlanePropertiesKHRreturned bygetPhysicalDeviceDisplayPlanePropertiesKHRfor the display plane corresponding todisplayMode - If
alphaModeisDISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHRthenglobalAlphamust be between0and1, inclusive alphaModemust be0or one of the bits present in thesupportedAlphamember ofDisplayPlaneCapabilitiesKHRreturned bygetDisplayPlaneCapabilitiesKHRfor the display plane corresponding todisplayMode- The
widthandheightmembers ofimageExtentmust be less than themaxImageDimensions2Dmember ofPhysicalDeviceLimits
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR
pNextmust beNULLflagsmust be0displayModemust be a validDisplayModeKHRhandletransformmust be a validSurfaceTransformFlagBitsKHRvaluealphaModemust be a validDisplayPlaneAlphaFlagBitsKHRvalue
See Also
DisplayModeKHR,
DisplayPlaneAlphaFlagBitsKHR, DisplaySurfaceCreateFlagsKHR,
Extent2D,
StructureType,
SurfaceTransformFlagBitsKHR,
createDisplayPlaneSurfaceKHR
Constructors
| DisplaySurfaceCreateInfoKHR | |
Fields
| |
Instances
| Show DisplaySurfaceCreateInfoKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods showsPrec :: Int -> DisplaySurfaceCreateInfoKHR -> ShowS # show :: DisplaySurfaceCreateInfoKHR -> String # showList :: [DisplaySurfaceCreateInfoKHR] -> ShowS # | |
| FromCStruct DisplaySurfaceCreateInfoKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display | |
| ToCStruct DisplaySurfaceCreateInfoKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods withCStruct :: DisplaySurfaceCreateInfoKHR -> (Ptr DisplaySurfaceCreateInfoKHR -> IO b) -> IO b Source # pokeCStruct :: Ptr DisplaySurfaceCreateInfoKHR -> DisplaySurfaceCreateInfoKHR -> IO b -> IO b Source # withZeroCStruct :: (Ptr DisplaySurfaceCreateInfoKHR -> IO b) -> IO b Source # pokeZeroCStruct :: Ptr DisplaySurfaceCreateInfoKHR -> IO b -> IO b Source # cStructSize :: Int Source # | |
| Zero DisplaySurfaceCreateInfoKHR Source # | |
Defined in Vulkan.Extensions.VK_KHR_display Methods | |
newtype DisplayModeCreateFlagsKHR Source #
VkDisplayModeCreateFlagsKHR - Reserved for future use
Description
DisplayModeCreateFlagsKHR is a bitmask type for setting a mask, but is
currently reserved for future use.
See Also
Constructors
| DisplayModeCreateFlagsKHR Flags |
Instances
newtype DisplaySurfaceCreateFlagsKHR Source #
VkDisplaySurfaceCreateFlagsKHR - Reserved for future use
Description
DisplaySurfaceCreateFlagsKHR is a bitmask type for setting a mask, but
is currently reserved for future use.
See Also
Constructors
| DisplaySurfaceCreateFlagsKHR Flags |
Instances
newtype DisplayPlaneAlphaFlagBitsKHR Source #
VkDisplayPlaneAlphaFlagBitsKHR - Alpha blending type
See Also
Constructors
| DisplayPlaneAlphaFlagBitsKHR Flags |
Bundled Patterns
| pattern DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR :: DisplayPlaneAlphaFlagBitsKHR |
|
| pattern DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR :: DisplayPlaneAlphaFlagBitsKHR |
|
| pattern DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR :: DisplayPlaneAlphaFlagBitsKHR |
|
| pattern DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR :: DisplayPlaneAlphaFlagBitsKHR |
|
Instances
type KHR_DISPLAY_SPEC_VERSION = 23 Source #
pattern KHR_DISPLAY_SPEC_VERSION :: forall a. Integral a => a Source #
type KHR_DISPLAY_EXTENSION_NAME = "VK_KHR_display" Source #
pattern KHR_DISPLAY_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #
newtype DisplayKHR Source #
VkDisplayKHR - Opaque handle to a display object
See Also
DisplayPlanePropertiesKHR,
DisplayPropertiesKHR,
acquireXlibDisplayEXT,
createDisplayModeKHR,
displayPowerControlEXT,
getDisplayModeProperties2KHR,
getDisplayModePropertiesKHR,
getDisplayPlaneSupportedDisplaysKHR,
getRandROutputDisplayEXT,
registerDisplayEventEXT,
releaseDisplayEXT
Constructors
| DisplayKHR Word64 |
Instances
newtype DisplayModeKHR Source #
VkDisplayModeKHR - Opaque handle to a display mode object
See Also
DisplayModePropertiesKHR,
DisplayPlaneInfo2KHR,
DisplaySurfaceCreateInfoKHR,
createDisplayModeKHR,
getDisplayPlaneCapabilitiesKHR
Constructors
| DisplayModeKHR Word64 |
Instances
newtype SurfaceKHR Source #
VkSurfaceKHR - Opaque handle to a surface object
Description
The VK_KHR_surface extension declares the SurfaceKHR object, and
provides a function for destroying SurfaceKHR objects. Separate
platform-specific extensions each provide a function for creating a
SurfaceKHR object for the respective platform. From the application’s
perspective this is an opaque handle, just like the handles of other
Vulkan objects.
See Also
PhysicalDeviceSurfaceInfo2KHR,
SwapchainCreateInfoKHR,
createAndroidSurfaceKHR,
createDisplayPlaneSurfaceKHR,
createHeadlessSurfaceEXT,
createIOSSurfaceMVK,
createImagePipeSurfaceFUCHSIA,
createMacOSSurfaceMVK,
createMetalSurfaceEXT,
createStreamDescriptorSurfaceGGP,
createViSurfaceNN,
createWaylandSurfaceKHR,
createWin32SurfaceKHR,
createXcbSurfaceKHR,
createXlibSurfaceKHR,
destroySurfaceKHR,
getDeviceGroupSurfacePresentModesKHR,
getPhysicalDevicePresentRectanglesKHR,
getPhysicalDeviceSurfaceCapabilities2EXT,
getPhysicalDeviceSurfaceCapabilitiesKHR,
getPhysicalDeviceSurfaceFormatsKHR,
getPhysicalDeviceSurfacePresentModesKHR,
getPhysicalDeviceSurfaceSupportKHR
Constructors
| SurfaceKHR Word64 |
Instances
newtype SurfaceTransformFlagBitsKHR Source #
VkSurfaceTransformFlagBitsKHR - presentation transforms supported on a device
See Also
CommandBufferInheritanceRenderPassTransformInfoQCOM,
DisplaySurfaceCreateInfoKHR,
RenderPassTransformBeginInfoQCOM,
SurfaceCapabilities2EXT,
SurfaceCapabilitiesKHR, SurfaceTransformFlagsKHR,
SwapchainCreateInfoKHR
Constructors
| SurfaceTransformFlagBitsKHR Flags |
Bundled Patterns