Add constructor to make apple clang happy

This commit is contained in:
Georg Hagen
2024-07-22 09:09:05 +02:00
parent f92cc09853
commit 00b200301c

View File

@@ -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