summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-06-24 22:42:07 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:39 +0200
commit8612b5fec5d39b904f9fddbbee3e06437d49429c (patch)
tree5a65fb94bc3159eda3f4bc89eb4693abecea6a7e
parentglasm: Add passthrough geometry shader support (diff)
downloadyuzu-8612b5fec5d39b904f9fddbbee3e06437d49429c.tar
yuzu-8612b5fec5d39b904f9fddbbee3e06437d49429c.tar.gz
yuzu-8612b5fec5d39b904f9fddbbee3e06437d49429c.tar.bz2
yuzu-8612b5fec5d39b904f9fddbbee3e06437d49429c.tar.lz
yuzu-8612b5fec5d39b904f9fddbbee3e06437d49429c.tar.xz
yuzu-8612b5fec5d39b904f9fddbbee3e06437d49429c.tar.zst
yuzu-8612b5fec5d39b904f9fddbbee3e06437d49429c.zip
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate_program.cpp5
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 6b4b0ce5b..2bb1d24a4 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;
}