diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-06-24 17:42:07 -0300 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-22 21:51:39 -0400 |
commit | 8612b5fec5d39b904f9fddbbee3e06437d49429c (patch) | |
tree | 5a65fb94bc3159eda3f4bc89eb4693abecea6a7e /src/shader_recompiler/frontend/maxwell/translate_program.cpp | |
parent | 8a3427a4c857aa08e365d1776d1f0d9f32639c9c (diff) |
shader: Use std::bit_cast instead of Common::BitCast for passthrough
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/translate_program.cpp')
-rw-r--r-- | src/shader_recompiler/frontend/maxwell/translate_program.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate_program.cpp b/src/shader_recompiler/frontend/maxwell/translate_program.cpp index 6b4b0ce5bd..2bb1d24a4a 100644 --- a/src/shader_recompiler/frontend/maxwell/translate_program.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate_program.cpp @@ -3,6 +3,7 @@ // Refer to the license.txt file included. #include <algorithm> +#include <bit> #include <memory> #include <ranges> #include <vector> @@ -142,8 +143,8 @@ IR::Program TranslateProgram(ObjectPool<IR::Inst>& inst_pool, ObjectPool<IR::Blo program.invocations = sph.common2.threads_per_input_primitive; program.is_geometry_passthrough = sph.common0.geometry_passthrough != 0; if (program.is_geometry_passthrough) { - const auto mask{env.GpPassthroughMask()}; - program.info.passthrough.mask |= ~Common::BitCast<std::bitset<256>>(mask); + const auto& mask{env.GpPassthroughMask()}; + program.info.passthrough.mask |= ~std::bit_cast<std::bitset<256>>(mask); } break; } |