mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Add define VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL to allow hiding the helper class vk::DynamicLoader. (#396)
This commit is contained in:
parent
702ff6f982
commit
89c9c91efd
@ -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"(
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user