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