diff --git a/src/vk_convert.cpp b/src/vk_convert.cpp index e0e9f3a..80b1a05 100644 --- a/src/vk_convert.cpp +++ b/src/vk_convert.cpp @@ -1,4 +1,5 @@ #include "vk_convert.hpp" +#include bool vkBool2Bool(const vk::Bool32& b) { if (b == VK_TRUE) { @@ -35,3 +36,12 @@ vk::Bool32 string2VkBool(const std::string& s) { return VK_FALSE; } } + + + +std::string toString(const vk::DescriptorSetLayoutBinding& binding) { + return "{ binding: " + gz::toString(binding.binding) + + ", desc. count: " + gz::toString(binding.descriptorCount) + + ", desc. type: " + vk::to_string(binding.descriptorType) + + ", stage flags: " + vk::to_string(binding.stageFlags); +} diff --git a/src/vk_convert.hpp b/src/vk_convert.hpp index 0e253ae..7ee6b67 100644 --- a/src/vk_convert.hpp +++ b/src/vk_convert.hpp @@ -4,9 +4,15 @@ #include #include +/* #ifdef GZ_UTIL_STRING_CONCEPTS */ +/* static_assert(false, "gz-util/string/conversion.hpp is included before vk_convert.hpp!"); */ +/* #endif */ + vk::Bool32 bool2VkBool(const bool& b); bool vkBool2Bool(const vk::Bool32& b); vk::Bool32 string2VkBool(const std::string& s); std::string vkBool2String(const vk::Bool32& b); + +std::string toString(const vk::DescriptorSetLayoutBinding& binding);