diff options
| author | 2021-05-19 16:32:03 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:32 -0400 | |
| commit | accad56ee7cc9f77886d164701a35f1e89a3519b (patch) | |
| tree | 34b272f1f70d0c4d926877c4e960ccec0084ce17 /src/shader_recompiler/backend/glasm/emit_context.cpp | |
| parent | glasm: Implement gl_PointSize stores (diff) | |
| download | yuzu-accad56ee7cc9f77886d164701a35f1e89a3519b.tar.gz yuzu-accad56ee7cc9f77886d164701a35f1e89a3519b.tar.xz yuzu-accad56ee7cc9f77886d164701a35f1e89a3519b.zip | |
glasm: Implement stores to gl_ViewportIndex
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_context.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_context.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_context.cpp b/src/shader_recompiler/backend/glasm/emit_context.cpp index e2182400c..395ac87f2 100644 --- a/src/shader_recompiler/backend/glasm/emit_context.cpp +++ b/src/shader_recompiler/backend/glasm/emit_context.cpp | |||
| @@ -23,7 +23,8 @@ std::string_view InterpDecorator(Interpolation interp) { | |||
| 23 | } | 23 | } |
| 24 | } // Anonymous namespace | 24 | } // Anonymous namespace |
| 25 | 25 | ||
| 26 | EmitContext::EmitContext(IR::Program& program, Bindings& bindings) : info{program.info} { | 26 | EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile& profile_) |
| 27 | : info{program.info}, profile{profile_} { | ||
| 27 | // FIXME: Temporary partial implementation | 28 | // FIXME: Temporary partial implementation |
| 28 | u32 cbuf_index{}; | 29 | u32 cbuf_index{}; |
| 29 | for (const auto& desc : program.info.constant_buffer_descriptors) { | 30 | for (const auto& desc : program.info.constant_buffer_descriptors) { |
| @@ -41,6 +42,7 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings) : info{progra | |||
| 41 | if (const size_t num = program.info.storage_buffers_descriptors.size(); num > 0) { | 42 | if (const size_t num = program.info.storage_buffers_descriptors.size(); num > 0) { |
| 42 | Add("PARAM c[{}]={{program.local[0..{}]}};", num, num - 1); | 43 | Add("PARAM c[{}]={{program.local[0..{}]}};", num, num - 1); |
| 43 | } | 44 | } |
| 45 | stage = program.stage; | ||
| 44 | switch (program.stage) { | 46 | switch (program.stage) { |
| 45 | case Stage::VertexA: | 47 | case Stage::VertexA: |
| 46 | case Stage::VertexB: | 48 | case Stage::VertexB: |