Shader: Add full support for scalar swizzle

This commit is contained in:
Jérôme Leclercq
2021-12-25 19:13:08 +01:00
parent ec3da7e3f5
commit f98ea6b0ca
5 changed files with 309 additions and 200 deletions

View File

@@ -147,7 +147,7 @@ namespace Nz
std::array<UInt32, 4> newIndices;
for (std::size_t i = 0; i < node.componentCount; ++i)
{
assert(node.components[i] < node.componentCount);
assert(node.components[i] < swizzledPointer.componentCount);
newIndices[i] = swizzledPointer.swizzleIndices[node.components[i]];
}