layers: Don't pre-query surface attributes during creation

Some of the calls to get surface capabilities, formats or
presentation modes are very slow in some implementations.
Revert back to caching results made by the application, but
store them in SURFACE_STATE rather than PHYSICAL_DEVICE_STATE.
The original code assumed that the same results would apply
to all surfaces, which doesn't appear to be true.
5 files changed
tree: bd4b1ff0375f72450b7974a4e891c9ec626936b6
  1. .github/
  2. build-android/
  3. build-gn/
  4. cmake/
  5. docs/
  6. layers/
  7. scripts/
  8. tests/
  9. .clang-format
  10. .clang-tidy
  11. .gitattributes
  12. .gitignore
  13. .gn
  14. BUILD.gn
  15. BUILD.md
  16. CMakeLists.txt
  17. CODE_OF_CONDUCT.md
  18. CONTRIBUTING.md
  19. GOVERNANCE.md
  20. LAYER_CONFIGURATION.md
  21. LICENSE.txt
  22. README.md
README.md

Vulkan Ecosystem Components

This project provides the Khronos official Vulkan validation layers for Windows, Linux, Android, and MacOS.

CI Build Status

Build Status
Build Status
Build Status
Build Status
Build Status

Introduction

Vulkan is an Explicit API, enabling direct control over how GPUs actually work. By design, minimal error checking is done inside a Vulkan driver. Applications have full control and responsibility for correct operation. Any errors in how Vulkan is used can result in a crash. This project provides Vulkan validation layers that can be enabled to assist development by enabling developers to verify their applications correct use of the Vulkan API.

The following components are available in this repository:

Contact Information

Information for Developing or Contributing:

Please see the CONTRIBUTING.md file in this repository for more details. Please see the GOVERNANCE.md file in this repository for repository management details.

How to Build and Run

BUILD.md Includes directions for building all components as well as running validation tests.

Information on how to enable the various Validation layers is in LAYER_CONFIGURATION.md.

Version Tagging Scheme

Updates to the Vulkan-ValidationLayers repository which correspond to a new Vulkan specification release are tagged using the following format: v<version> (e.g., v1.1.96).

Note: Marked version releases have undergone thorough testing but do not imply the same quality level as SDK tags. SDK tags follow the sdk-<version>.<patch> format (e.g., sdk-1.1.92.0).

This scheme was adopted following the 1.1.96 Vulkan specification release.

License

This work is released as open source under a Apache-style license from Khronos including a Khronos copyright.

See LICENSE.txt for a full list of licenses used in this repository.

Acknowledgements

While this project has been developed primarily by LunarG, Inc., there are many other companies and individuals making this possible: Valve Corporation, funding project development; Google providing significant contributions to the validation layers; Khronos providing oversight and hosting of the project.