Shader/SPIRV: Fix issues with loops containing branches and cross product

This commit is contained in:
Jérôme Leclercq
2022-01-23 19:59:10 +01:00
parent 64efd81bf8
commit 2463e471cc
2 changed files with 53 additions and 30 deletions

View File

@@ -152,7 +152,7 @@ namespace Nz
std::unordered_map<std::size_t, ShaderAst::StructDescription*> m_structs;
std::unordered_map<std::size_t, Variable> m_variables;
std::vector<std::size_t> m_scopeSizes;
std::vector<SpirvBlock> m_functionBlocks;
std::vector<std::unique_ptr<SpirvBlock>> m_functionBlocks;
std::vector<UInt32> m_resultIds;
SpirvBlock* m_currentBlock;
SpirvSection& m_instructions;