summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/recompiler.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-03-19 19:28:31 -0300
committerGravatar ameerj2021-07-22 21:51:23 -0400
commit260743f371236f7c57b01334b1c3474b15a47c39 (patch)
tree312d89fa8215199ef5f7ec1fc84b025df526e107 /src/shader_recompiler/recompiler.cpp
parentshader: Implement DADD (diff)
downloadyuzu-260743f371236f7c57b01334b1c3474b15a47c39.tar.gz
yuzu-260743f371236f7c57b01334b1c3474b15a47c39.tar.xz
yuzu-260743f371236f7c57b01334b1c3474b15a47c39.zip
shader: Add partial rasterizer integration
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/recompiler.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/shader_recompiler/recompiler.cpp b/src/shader_recompiler/recompiler.cpp
deleted file mode 100644
index 527e19c27..000000000
--- a/src/shader_recompiler/recompiler.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
1// Copyright 2021 yuzu Emulator Project
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#include <vector>
6
7#include "common/common_types.h"
8#include "shader_recompiler/backend/spirv/emit_spirv.h"
9#include "shader_recompiler/environment.h"
10#include "shader_recompiler/frontend/maxwell/control_flow.h"
11#include "shader_recompiler/frontend/maxwell/program.h"
12#include "shader_recompiler/object_pool.h"
13#include "shader_recompiler/recompiler.h"
14
15namespace Shader {
16
17std::pair<Info, std::vector<u32>> RecompileSPIRV(const Profile& profile, Environment& env,
18 u32 start_address) {
19 ObjectPool<Maxwell::Flow::Block> flow_block_pool;
20 ObjectPool<IR::Inst> inst_pool;
21 ObjectPool<IR::Block> block_pool;
22
23 Maxwell::Flow::CFG cfg{env, flow_block_pool, start_address};
24 IR::Program program{Maxwell::TranslateProgram(inst_pool, block_pool, env, cfg)};
25 return {std::move(program.info), Backend::SPIRV::EmitSPIRV(profile, env, program)};
26}
27
28} // namespace Shader