mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Check value of VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL
instead of existence (#1856)
* Check value of VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL instead of existence * Also change vulkansc.cppm
This commit is contained in:
parent
1de6e89eb2
commit
79307b6253
@ -5668,8 +5668,11 @@ std::string VulkanHppGenerator::generateCppModuleUsings() const
|
|||||||
auto const [enterDisableEnhanced, leaveDisableEnhanced] = generateProtection( "VULKAN_HPP_DISABLE_ENHANCED_MODE", false );
|
auto const [enterDisableEnhanced, leaveDisableEnhanced] = generateProtection( "VULKAN_HPP_DISABLE_ENHANCED_MODE", false );
|
||||||
usings += "\n" + enterDisableEnhanced + replaceWithMap( usingTemplate, { { "className", "StructExtends" } } ) + leaveDisableEnhanced + "\n";
|
usings += "\n" + enterDisableEnhanced + replaceWithMap( usingTemplate, { { "className", "StructExtends" } } ) + leaveDisableEnhanced + "\n";
|
||||||
|
|
||||||
auto const [enterDynamicLoader, leaveDynamicLoader] = generateProtection( "VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL" );
|
auto const dynamicLoaderUsing = std::string{R"(#if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL
|
||||||
usings += "\n" + enterDynamicLoader + replaceWithMap( usingTemplate, { { "className", "DynamicLoader" } } ) + leaveDynamicLoader + "\n";
|
using VULKAN_HPP_NAMESPACE::DynamicLoader;
|
||||||
|
#endif /*VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL*/
|
||||||
|
)"};
|
||||||
|
usings += dynamicLoaderUsing;
|
||||||
|
|
||||||
usings += generateCppModuleFormatTraitsUsings();
|
usings += generateCppModuleFormatTraitsUsings();
|
||||||
usings += generateCppModuleExtensionInspectionUsings();
|
usings += generateCppModuleExtensionInspectionUsings();
|
||||||
|
@ -4675,7 +4675,7 @@ export namespace VULKAN_HPP_NAMESPACE
|
|||||||
using VULKAN_HPP_NAMESPACE::StructExtends;
|
using VULKAN_HPP_NAMESPACE::StructExtends;
|
||||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||||
|
|
||||||
#if defined( VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL )
|
#if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL
|
||||||
using VULKAN_HPP_NAMESPACE::DynamicLoader;
|
using VULKAN_HPP_NAMESPACE::DynamicLoader;
|
||||||
#endif /*VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL*/
|
#endif /*VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL*/
|
||||||
|
|
||||||
|
@ -1703,7 +1703,7 @@ export namespace VULKAN_HPP_NAMESPACE
|
|||||||
using VULKAN_HPP_NAMESPACE::StructExtends;
|
using VULKAN_HPP_NAMESPACE::StructExtends;
|
||||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||||
|
|
||||||
#if defined( VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL )
|
#if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL
|
||||||
using VULKAN_HPP_NAMESPACE::DynamicLoader;
|
using VULKAN_HPP_NAMESPACE::DynamicLoader;
|
||||||
#endif /*VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL*/
|
#endif /*VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL*/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user