diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-07-15 16:28:07 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-15 16:28:07 -0400 |
| commit | 1bdb59fc6e52ac9d2c2432511fe7524994cc4f55 (patch) | |
| tree | bcef764c59b000dba9eb040281799bf0152cb363 /src/video_core/shader/shader_ir.cpp | |
| parent | b77a1ed67a56bea82a20d6c8e581073a709a2c90 (diff) | |
| parent | 0eb0c24269677cda2ba8c5be216a3c87520f2e70 (diff) | |
Merge pull request #2695 from ReinUsesLisp/layer-viewport
gl_shader_decompiler: Implement gl_ViewportIndex and gl_Layer in vertex shaders
Diffstat (limited to 'src/video_core/shader/shader_ir.cpp')
| -rw-r--r-- | src/video_core/shader/shader_ir.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/video_core/shader/shader_ir.cpp b/src/video_core/shader/shader_ir.cpp index 5994bfc4e..caa409788 100644 --- a/src/video_core/shader/shader_ir.cpp +++ b/src/video_core/shader/shader_ir.cpp @@ -89,6 +89,22 @@ Node ShaderIR::GetPhysicalInputAttribute(Tegra::Shader::Register physical_addres } Node ShaderIR::GetOutputAttribute(Attribute::Index index, u64 element, Node buffer) { + if (index == Attribute::Index::LayerViewportPointSize) { + switch (element) { + case 0: + UNIMPLEMENTED(); + break; + case 1: + uses_layer = true; + break; + case 2: + uses_viewport_index = true; + break; + case 3: + uses_point_size = true; + break; + } + } if (index == Attribute::Index::ClipDistances0123 || index == Attribute::Index::ClipDistances4567) { const auto clip_index = |
