HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulevulkan-3.27GHC2021

Vulkan.Extensions.VK_KHR_surface_protected_capabilities

Name

VK_KHR_surface_protected_capabilities - instance extension

VK_KHR_surface_protected_capabilities

Name String

VK_KHR_surface_protected_capabilities

Extension Type

Instance extension

Registered Extension Number

240

Revision

1

Ratification Status

Ratified

Extension and Version Dependencies

Vulkan Version 1.1

and

VK_KHR_get_surface_capabilities2

Contact

Other Extension Metadata

Last Modified Date

2018-12-18

IP Status

No known IP claims.

Contributors
  • Sandeep Shinde, NVIDIA

  • James Jones, NVIDIA

  • Daniel Koch, NVIDIA

Description

This extension extends SurfaceCapabilities2KHR, providing applications a way to query whether swapchains can be created with the SWAPCHAIN_CREATE_PROTECTED_BIT_KHR flag set.

Vulkan 1.1 added (optional) support for protect memory and protected resources including buffers (BUFFER_CREATE_PROTECTED_BIT), images (IMAGE_CREATE_PROTECTED_BIT), and swapchains (SWAPCHAIN_CREATE_PROTECTED_BIT_KHR). However, on implementations which support multiple windowing systems, not all window systems may be able to provide a protected display path.

This extension provides a way to query if a protected swapchain created for a surface (and thus a specific windowing system) can be displayed on screen. It extends the existing SurfaceCapabilities2KHR structure with a new SurfaceProtectedCapabilitiesKHR structure from which the application can obtain information about support for protected swapchain creation through getPhysicalDeviceSurfaceCapabilities2KHR.

New Structures

New Enum Constants

Version History

  • Revision 1, 2018-12-18 (Sandeep Shinde, Daniel Koch)

    • Internal revisions.

See Also

No cross-references are available

Document Notes

For more information, see the Vulkan Specification.

This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.

  • 3 types
  • Packagevulkan-3.27
  • Exports5
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceVK_KHR_surface_protected_capabilities.hs

VkSurfaceProtectedCapabilitiesKHR - Structure describing capability of a surface to be protected

Description

If the VK_GOOGLE_surfaceless_query extension is enabled, the value returned in supportsProtected will be identical for every valid surface created on this physical device, and so in the getPhysicalDeviceSurfaceCapabilities2KHR call, PhysicalDeviceSurfaceInfo2KHR::surface can be NULL_HANDLE. In that case, the contents of SurfaceCapabilities2KHR::surfaceCapabilities as well as any other structure chained to it will be undefined.

Structure Chaining

Extends the structure

See Also

VK_KHR_surface_protected_capabilities, Bool32, StructureType

Constructors

Instances6Eq, Show, Storable, FromCStruct, ToCStruct, Zero