Vulkan-Hpp/tests
Sharadh Rajaraman 6abd3f42a8
Use import std; guarded by macro (#1932)
* Initial build and tests setup

* Enable the `CppStdModule` test

* Snippets and generator changes

* Generated files changes

* Enable std module with macro

* Unconditionally use `import std` with C++23

* Add support for external `import std` control with `VULKAN_HPP_ENABLE_STD_MODULE`

- Rewrite `includes.hpp` and `macros.hpp`
- Unconditionally set `VULKAN_HPP_ENABLE_STD_MODULE` for `vulkan.cppm` to bug-fix
- Generated necessary files again

* Top-level CMake changes

* Reorganise logic, and propagate external macro correctly

* RAII: vulkan_hpp before ifdef

* Define `VK_USE_64_BIT_PTR_DEFINES` in `vulkan_hpp_macros.hpp`

* Generate the `VK_USE_64_BIT_PTR_DEFINES` clause from the XML instead of hardcoding it

* Refactored handling for `VK_USE_64_BIT_PTR_DEFINES`

- Updated condition to positive test for `#ifndef VK_USE_64_BIT_PTR_DEFINES` in `completeMacro`

* Added `#include <string.h>` to resolve `strnlen` missing in the module

* Use only `std.compat`

* FIx after rebase
2024-09-05 08:48:19 +02:00
..
ArrayProxy Ignore warnings in some tests; fix ambiguity in ArrayWrapper test (#1712) 2023-10-24 18:27:35 +02:00
ArrayProxyNoTemporaries Simplify helper class vk::ArrayProxyNoTemporaries. (#1908) 2024-06-25 17:43:55 +02:00
ArrayWrapper Improve relational operators on ArrayWrapper1D. (#1890) 2024-06-06 08:35:49 +02:00
Cpp20Modules Use import std; guarded by macro (#1932) 2024-09-05 08:48:19 +02:00
CppStdModule Use import std; guarded by macro (#1932) 2024-09-05 08:48:19 +02:00
CppType Guard type trait CppType to map from VkHandle to vk::Handle by ( VK_USE_64_BIT_PTR_DEFINES == 1 ). (#1836) 2024-03-25 14:00:43 +01:00
DesignatedInitializers Cleanup in CMakeLists.txt (#1572) 2023-05-08 11:54:57 +02:00
DeviceFunctions Cleanup in CMakeLists.txt (#1572) 2023-05-08 11:54:57 +02:00
DispatchLoaderDynamic Make C++20 modules work with the defaultDispatchLoaderDynamic. (#1651) 2023-09-07 15:20:10 +02:00
DispatchLoaderDynamicSharedLibrary Cleanup in CMakeLists.txt (#1572) 2023-05-08 11:54:57 +02:00
DispatchLoaderDynamicSharedLibraryClient Make C++20 modules work with the defaultDispatchLoaderDynamic. (#1651) 2023-09-07 15:20:10 +02:00
DispatchLoaderStatic Cleanup in CMakeLists.txt (#1572) 2023-05-08 11:54:57 +02:00
EnableBetaExtensions Fix wrong usage of 'structureChains' in generating functions returning a StructureChain and a vector of data. (#1594) 2023-06-19 12:46:04 +02:00
ExtensionInspection Fix defines in workflow files to enable compilation of tests and samples in CI. (#1595) 2023-06-20 14:43:35 +02:00
Flags Cleanup in CMakeLists.txt (#1572) 2023-05-08 11:54:57 +02:00
FormatTraits Cleanup in CMakeLists.txt (#1572) 2023-05-08 11:54:57 +02:00
Handles Introduce operator==() and operator!=() to compare vk-handles with nullptr. (#1600) 2023-06-22 09:07:26 +02:00
HandlesMoveExchange Non raii handles move exchange (#1929) 2024-07-23 09:55:09 +02:00
Hash Cleanup in CMakeLists.txt (#1572) 2023-05-08 11:54:57 +02:00
NoExceptions Make C++20 modules work with the defaultDispatchLoaderDynamic. (#1651) 2023-09-07 15:20:10 +02:00
NoExceptionsRAII Introduce implicit cast operators for vk::UniqueHandles, vk::SharedHandles and vk::raii::Handles (#1771) 2024-01-16 13:48:53 +01:00
StridedArrayProxy Silent warnings on unused variables in some tests; make test UniqueHandleDefaultArguments part of the solution for 64 bit only. (#1704) 2023-10-18 13:45:14 +02:00
StructureChain Fix issue with vk::StructureChain::assign: use auto, instead of void *, to also support structures with const void * as type for pNext. (#1799) 2024-02-08 12:32:57 +01:00
UniqueHandle Make generated headers resistant to missing definition of NOMINMAX for windows builds. (#1906) 2024-06-17 14:51:12 +02:00
UniqueHandleDefaultArguments Silent warnings on unused variables in some tests; make test UniqueHandleDefaultArguments part of the solution for 64 bit only. (#1704) 2023-10-18 13:45:14 +02:00
CMakeLists.txt Use import std; guarded by macro (#1932) 2024-09-05 08:48:19 +02:00