summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/shader_bytecode.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-06-20 22:46:14 +0200
committerGitHub <noreply@github.com>2018-06-20 22:46:14 +0200
commitc3e95086b66dfa4214892dcddb9fd6f865037c1e (patch)
tree859f41acecbdcfcbdf19df80903a045d6e2b0bcb /src/video_core/engines/shader_bytecode.h
parentImplement GetAvailableLanguageCodes2 (#575) (diff)
parentBuild: Fixed some MSVC warnings in various parts of the code. (diff)
downloadyuzu-c3e95086b66dfa4214892dcddb9fd6f865037c1e.tar
yuzu-c3e95086b66dfa4214892dcddb9fd6f865037c1e.tar.gz
yuzu-c3e95086b66dfa4214892dcddb9fd6f865037c1e.tar.bz2
yuzu-c3e95086b66dfa4214892dcddb9fd6f865037c1e.tar.lz
yuzu-c3e95086b66dfa4214892dcddb9fd6f865037c1e.tar.xz
yuzu-c3e95086b66dfa4214892dcddb9fd6f865037c1e.tar.zst
yuzu-c3e95086b66dfa4214892dcddb9fd6f865037c1e.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/engines/shader_bytecode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index 5ff861b04..cb4db0679 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -372,7 +372,7 @@ union Instruction {
BitField<31, 4, u64> component_mask;
bool IsComponentEnabled(size_t component) const {
- return ((1 << component) & component_mask) != 0;
+ return ((1ull << component) & component_mask) != 0;
}
} tex;
@@ -391,7 +391,7 @@ union Instruction {
ASSERT(component_mask_selector < mask.size());
- return ((1 << component) & mask[component_mask_selector]) != 0;
+ return ((1ull << component) & mask[component_mask_selector]) != 0;
}
} texs;