From e1b3be7ced2f6c036dce456de16886451b205791 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Thu, 6 Jun 2019 19:31:14 -0300 Subject: shader: Move Node declarations out of the shader IR header Analysis passes do not have a good reason to depend on shader_ir.h to work on top of nodes. This splits node-related declarations to their own file and leaves the IR in shader_ir.h --- src/video_core/shader/node_helper.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/video_core/shader/node_helper.h') 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 #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 code); -- cgit v1.2.3