diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-02-03 22:07:20 +0100 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-02-03 23:17:18 +0100 |
commit | 0306c50339ae6f5a739826accadd91dabeec9f7b (patch) | |
tree | 8e02ef9450614c78274ea2196593d1101ef43c6f /src/video_core/engines/shader_bytecode.h | |
parent | Merge pull request #2072 from lioncash/service (diff) | |
download | yuzu-0306c50339ae6f5a739826accadd91dabeec9f7b.tar yuzu-0306c50339ae6f5a739826accadd91dabeec9f7b.tar.gz yuzu-0306c50339ae6f5a739826accadd91dabeec9f7b.tar.bz2 yuzu-0306c50339ae6f5a739826accadd91dabeec9f7b.tar.lz yuzu-0306c50339ae6f5a739826accadd91dabeec9f7b.tar.xz yuzu-0306c50339ae6f5a739826accadd91dabeec9f7b.tar.zst yuzu-0306c50339ae6f5a739826accadd91dabeec9f7b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/engines/shader_bytecode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h index 9989825f8..3ec37b122 100644 --- a/src/video_core/engines/shader_bytecode.h +++ b/src/video_core/engines/shader_bytecode.h @@ -981,6 +981,10 @@ union Instruction { } return false; } + + bool IsComponentEnabled(std::size_t component) const { + return ((1ul << component) & component_mask) != 0; + } } txq; union { |