aboutsummaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/spirv/emit_spirv.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-10 19:32:10 -0300
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-22 21:51:31 -0400
commit8c81a20ace8c65d0a9d58b9cf333049a2bc0383a (patch)
tree86c653e99c02225f7ed5ee93b42d272b11404a93 /src/shader_recompiler/backend/spirv/emit_spirv.cpp
parentc917290497b313abe2f9ad6983050703615b1888 (diff)
glasm: Ensure reg alloc order across compilers on GLASM
Use a struct constructor to serialize register allocation arguments to ensure registers are allocated in the same order regardless of the compiler used. The A and B functions can be called in any order when passed as arguments to "foo": foo(A(), B()) But the order is guaranteed for curly-braced constructor calls in classes: Foo{A(), B()} Use this to get consistent behavior.
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv.cpp')
0 files changed, 0 insertions, 0 deletions