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
This commit is contained in:
ReinUsesLisp
2019-06-06 19:31:14 -03:00
parent 04ac7a637a
commit e1b3be7ced
4 changed files with 518 additions and 493 deletions

View File

@ -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);