summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-19 10:01:59 +0200
committerLioncash <mathew1800@gmail.com>2019-05-19 10:02:02 +0200
commitce04ab38bbcd3b33ef9860b7631c7de8f9f2ebc2 (patch)
tree2dc100fc5752284fef023af7c642b76b7b0660f9 /src
parentMerge pull request #2457 from lioncash/about (diff)
downloadyuzu-ce04ab38bbcd3b33ef9860b7631c7de8f9f2ebc2.tar
yuzu-ce04ab38bbcd3b33ef9860b7631c7de8f9f2ebc2.tar.gz
yuzu-ce04ab38bbcd3b33ef9860b7631c7de8f9f2ebc2.tar.bz2
yuzu-ce04ab38bbcd3b33ef9860b7631c7de8f9f2ebc2.tar.lz
yuzu-ce04ab38bbcd3b33ef9860b7631c7de8f9f2ebc2.tar.xz
yuzu-ce04ab38bbcd3b33ef9860b7631c7de8f9f2ebc2.tar.zst
yuzu-ce04ab38bbcd3b33ef9860b7631c7de8f9f2ebc2.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/shader_ir.cpp7
-rw-r--r--src/video_core/shader/shader_ir.h7
2 files changed, 9 insertions, 5 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();
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h
index 65f1e1de9..3fab404f4 100644
--- a/src/video_core/shader/shader_ir.h
+++ b/src/video_core/shader/shader_ir.h
@@ -567,11 +567,8 @@ private:
class ShaderIR final {
public:
- explicit ShaderIR(const ProgramCode& program_code, u32 main_offset)
- : program_code{program_code}, main_offset{main_offset} {
-
- Decode();
- }
+ explicit ShaderIR(const ProgramCode& program_code, u32 main_offset);
+ ~ShaderIR();
const std::map<u32, NodeBlock>& GetBasicBlocks() const {
return basic_blocks;