Shader: Fix Swizzle generation for SPIRV

This commit is contained in:
Jérôme Leclercq 2021-05-14 02:09:54 +02:00
parent 830ec6ac94
commit bb207fea4f
1 changed files with 1 additions and 2 deletions

View File

@ -616,7 +616,6 @@ namespace Nz
{
const auto& func = m_funcData[m_funcIndex];
UInt32 pointerTypeId = m_writer.GetPointerTypeId(node.varType, SpirvStorageClass::Function);
UInt32 typeId = m_writer.GetTypeId(node.varType);
assert(node.varIndex);
@ -767,7 +766,7 @@ namespace Nz
appender(exprResultId);
for (std::size_t i = 0; i < node.componentCount; ++i)
appender(UInt32(node.components[0]) - UInt32(node.components[i]));
appender(UInt32(node.components[i]));
});
}
else