diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-05-19 04:01:59 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-05-19 04:02:02 -0400 |
| commit | ce04ab38bbcd3b33ef9860b7631c7de8f9f2ebc2 (patch) | |
| tree | 2dc100fc5752284fef023af7c642b76b7b0660f9 /src/video_core/shader/shader_ir.cpp | |
| parent | fb85d5670d54e526035d83f66f7689eebda73be2 (diff) | |
shader/shader_ir: Place implementations of constructor and destructor in cpp file
Given the class contains quite a lot of non-trivial types, place the
constructor and destructor within the cpp file to avoid inlining
construction and destruction code everywhere the class is used.
Diffstat (limited to 'src/video_core/shader/shader_ir.cpp')
| -rw-r--r-- | src/video_core/shader/shader_ir.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/shader/shader_ir.cpp b/src/video_core/shader/shader_ir.cpp index e4eb0dfd9..196235e5d 100644 --- a/src/video_core/shader/shader_ir.cpp +++ b/src/video_core/shader/shader_ir.cpp @@ -21,6 +21,13 @@ using Tegra::Shader::PredCondition; using Tegra::Shader::PredOperation; using Tegra::Shader::Register; +ShaderIR::ShaderIR(const ProgramCode& program_code, u32 main_offset) + : program_code{program_code}, main_offset{main_offset} { + Decode(); +} + +ShaderIR::~ShaderIR() = default; + Node ShaderIR::StoreNode(NodeData&& node_data) { auto store = std::make_unique<NodeData>(node_data); const Node node = store.get(); |
