summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/node_helper.h
diff options
context:
space:
mode:
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);