mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-15 08:20:07 +00:00
Fix HLSL matrix unrolling
This commit is contained in:
parent
cb637db5d6
commit
61b561772c
@ -862,7 +862,7 @@ void CompilerHLSL::emit_hlsl_entry_point()
|
|||||||
{
|
{
|
||||||
// Unroll matrices.
|
// Unroll matrices.
|
||||||
for (uint32_t col = 0; col < mtype.columns; col++)
|
for (uint32_t col = 0; col < mtype.columns; col++)
|
||||||
statement(name, "[", col, "] = stage_input.", name, "_0;");
|
statement(name, "[", col, "] = stage_input.", name, "_", col, ";");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user