From 00b200301c997a26bcfcbe07e8f5c1a58c45580b Mon Sep 17 00:00:00 2001 From: Georg Hagen Date: Mon, 22 Jul 2024 09:09:05 +0200 Subject: [PATCH] Add constructor to make apple clang happy --- openVulkanoCpp/Scene/Shader/PushConstant.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openVulkanoCpp/Scene/Shader/PushConstant.hpp b/openVulkanoCpp/Scene/Shader/PushConstant.hpp index dcb90bc..9b59423 100644 --- a/openVulkanoCpp/Scene/Shader/PushConstant.hpp +++ b/openVulkanoCpp/Scene/Shader/PushConstant.hpp @@ -14,6 +14,14 @@ namespace OpenVulkano { ShaderProgramType::Type stageFlags; uint32_t offset, size; + + PushConstantRange(ShaderProgramType::Type stages, uint32_t offset, uint32_t size) + : stageFlags(stages), offset(offset), size(size) + {} + + PushConstantRange(uint32_t size, uint32_t offset = 0, ShaderProgramType::Type stages = ShaderProgramType::ALL_GRAPHICS) + : stageFlags(stages), offset(offset), size(size) + {} }; struct PushConstant : PushConstantRange