Add define VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL to allow hiding the helper class vk::DynamicLoader. (#396)

This commit is contained in:
Andreas Süßenbach 2019-10-01 03:14:22 +02:00 committed by Markus Tavenrath
parent 702ff6f982
commit 89c9c91efd
2 changed files with 12 additions and 0 deletions

View File

@ -1016,6 +1016,11 @@ void VulkanHppGenerator::appendCommand(std::string & str, std::string const& ind
void VulkanHppGenerator::appendDispatchLoaderDynamic(std::string & str) void VulkanHppGenerator::appendDispatchLoaderDynamic(std::string & str)
{ {
str += R"( str += R"(
#if !defined(VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL)
# define VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL 1
#endif
#if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL
class DynamicLoader class DynamicLoader
{ {
public: public:
@ -1073,6 +1078,7 @@ void VulkanHppGenerator::appendDispatchLoaderDynamic(std::string & str)
#error unsupported platform #error unsupported platform
#endif #endif
}; };
#endif
)"; )";
str += R"( str += R"(

View File

@ -71556,6 +71556,11 @@ namespace VULKAN_HPP_NAMESPACE
template <> struct isStructureChainValid<WriteDescriptorSet, WriteDescriptorSetAccelerationStructureNV>{ enum { value = true }; }; template <> struct isStructureChainValid<WriteDescriptorSet, WriteDescriptorSetAccelerationStructureNV>{ enum { value = true }; };
template <> struct isStructureChainValid<WriteDescriptorSet, WriteDescriptorSetInlineUniformBlockEXT>{ enum { value = true }; }; template <> struct isStructureChainValid<WriteDescriptorSet, WriteDescriptorSetInlineUniformBlockEXT>{ enum { value = true }; };
#if !defined(VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL)
# define VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL 1
#endif
#if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL
class DynamicLoader class DynamicLoader
{ {
public: public:
@ -71613,6 +71618,7 @@ namespace VULKAN_HPP_NAMESPACE
#error unsupported platform #error unsupported platform
#endif #endif
}; };
#endif
class DispatchLoaderDynamic class DispatchLoaderDynamic
{ {