diff options
| author | bunnei <bunneidev@gmail.com> | 2019-06-06 22:31:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-06 22:31:46 -0400 |
| commit | cd2d9628c99db1944b44b5699bfc40bee582301d (patch) | |
| tree | e395a8a535f94b31cfb72f415065b1bf65139bbe /src/video_core/shader/node_helper.h | |
| parent | 04ac7a637abbb23fdc9ff316fd6c2a8197c68363 (diff) | |
| parent | dec1cbaf7f80847dc9426cf87105c3457aade04f (diff) | |
Merge pull request #2558 from ReinUsesLisp/shader-nodes
shader: Move Node declarations out of the shader IR header
Diffstat (limited to 'src/video_core/shader/node_helper.h')
| -rw-r--r-- | src/video_core/shader/node_helper.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/shader/node_helper.h b/src/video_core/shader/node_helper.h index 70547a03d..0c2aa749b 100644 --- a/src/video_core/shader/node_helper.h +++ b/src/video_core/shader/node_helper.h @@ -12,10 +12,15 @@ #include <vector> #include "common/common_types.h" -#include "video_core/shader/shader_ir.h" +#include "video_core/shader/node.h" namespace VideoCommon::Shader { +/// This arithmetic operation cannot be constraint +inline constexpr MetaArithmetic PRECISE = {true}; +/// This arithmetic operation can be optimized away +inline constexpr MetaArithmetic NO_PRECISE = {false}; + /// Creates a conditional node Node Conditional(Node condition, std::vector<Node> code); |
