0.2.0-dev Download ZIP
18 lines ·558 B Raw
| 1 | // Copyright (c) 2017-2026 The Khronos Group Inc. |
| 2 | // |
| 3 | // SPDX-License-Identifier: Apache-2.0 OR MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | // Exposes a centralized way to read properties which may be passed to the loader through xrInitializeLoaderKHR or available through |
| 11 | // environment variables. |
| 12 | namespace LoaderProperty { |
| 13 | std::string Get(const std::string& name); |
| 14 | std::string GetSecure(const std::string& name); |
| 15 | bool IsSet(const std::string& name); |
| 16 | void SetOverride(std::string name, std::string value); |
| 17 | void ClearOverrides(); |
| 18 | } // namespace LoaderProperty |