diff options
author | bunnei <bunneidev@gmail.com> | 2019-02-05 02:22:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-05 02:22:32 +0100 |
commit | bb4549a73d207637a1407cffe662fa58ee58d594 (patch) | |
tree | 15eab5ac226a0fd6db21b96ecbcc79ef0b1461c4 /src/video_core/engines/shader_bytecode.h | |
parent | Merge pull request #2074 from ReinUsesLisp/shader-ir-unify-offset (diff) | |
parent | Update src/video_core/engines/shader_bytecode.h (diff) | |
download | yuzu-bb4549a73d207637a1407cffe662fa58ee58d594.tar yuzu-bb4549a73d207637a1407cffe662fa58ee58d594.tar.gz yuzu-bb4549a73d207637a1407cffe662fa58ee58d594.tar.bz2 yuzu-bb4549a73d207637a1407cffe662fa58ee58d594.tar.lz yuzu-bb4549a73d207637a1407cffe662fa58ee58d594.tar.xz yuzu-bb4549a73d207637a1407cffe662fa58ee58d594.tar.zst yuzu-bb4549a73d207637a1407cffe662fa58ee58d594.zip |
Diffstat (limited to 'src/video_core/engines/shader_bytecode.h')
-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 713b01c9f..8e915e2ae 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 ((1ULL << component) & component_mask) != 0; + } } txq; union { |