diff --git a/include/vkcv/PushConstants.hpp b/include/vkcv/PushConstants.hpp index b433d214d5319634a7498c9f0b87f97eeb58b063..d974fbe6241daf948b13929305fb24aff5ec06f5 100644 --- a/include/vkcv/PushConstants.hpp +++ b/include/vkcv/PushConstants.hpp @@ -3,6 +3,8 @@ #include <vector> #include <vulkan/vulkan.hpp> +#include "Logger.hpp" + namespace vkcv { class PushConstants { @@ -48,6 +50,8 @@ namespace vkcv { template<typename T = uint8_t> bool appendDrawcall(const T& value) { if (sizeof(T) != m_sizePerDrawcall) { + vkcv_log(LogLevel::WARNING, "Size (%lu) of value does not match the specified size per drawcall (%lu)", + sizeof(value), m_sizePerDrawcall); return false; }