aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/shader/node_helper.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-06-06 22:31:46 -0400
committerGitHub <noreply@github.com>2019-06-06 22:31:46 -0400
commitcd2d9628c99db1944b44b5699bfc40bee582301d (patch)
treee395a8a535f94b31cfb72f415065b1bf65139bbe /src/video_core/shader/node_helper.h
parent04ac7a637abbb23fdc9ff316fd6c2a8197c68363 (diff)
parentdec1cbaf7f80847dc9426cf87105c3457aade04f (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.h7
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);