summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-06-24 17:42:07 -0300
committerGravatar ameerj2021-07-22 21:51:39 -0400
commit8612b5fec5d39b904f9fddbbee3e06437d49429c (patch)
tree5a65fb94bc3159eda3f4bc89eb4693abecea6a7e /src/shader_recompiler/frontend
parentglasm: Add passthrough geometry shader support (diff)
downloadyuzu-8612b5fec5d39b904f9fddbbee3e06437d49429c.tar.gz
yuzu-8612b5fec5d39b904f9fddbbee3e06437d49429c.tar.xz
yuzu-8612b5fec5d39b904f9fddbbee3e06437d49429c.zip
shader: Use std::bit_cast instead of Common::BitCast for passthrough
Diffstat (limited to 'src/shader_recompiler/frontend')
-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 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <algorithm> 5#include <algorithm>
6#include <bit>
6#include <memory> 7#include <memory>
7#include <ranges> 8#include <ranges>
8#include <vector> 9#include <vector>
@@ -142,8 +143,8 @@ IR::Program TranslateProgram(ObjectPool<IR::Inst>& inst_pool, ObjectPool<IR::Blo
142 program.invocations = sph.common2.threads_per_input_primitive; 143 program.invocations = sph.common2.threads_per_input_primitive;
143 program.is_geometry_passthrough = sph.common0.geometry_passthrough != 0; 144 program.is_geometry_passthrough = sph.common0.geometry_passthrough != 0;
144 if (program.is_geometry_passthrough) { 145 if (program.is_geometry_passthrough) {
145 const auto mask{env.GpPassthroughMask()}; 146 const auto& mask{env.GpPassthroughMask()};
146 program.info.passthrough.mask |= ~Common::BitCast<std::bitset<256>>(mask); 147 program.info.passthrough.mask |= ~std::bit_cast<std::bitset<256>>(mask);
147 } 148 }
148 break; 149 break;
149 } 150 }