diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-07-15 22:28:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-15 22:28:07 +0200 |
commit | 1bdb59fc6e52ac9d2c2432511fe7524994cc4f55 (patch) | |
tree | bcef764c59b000dba9eb040281799bf0152cb363 /src/video_core/shader/shader_ir.cpp | |
parent | Merge pull request #2705 from FernandoS27/tex-cache-fixes (diff) | |
parent | gl_shader_decompiler: Fix gl_PointSize redeclaration (diff) | |
download | yuzu-1bdb59fc6e52ac9d2c2432511fe7524994cc4f55.tar yuzu-1bdb59fc6e52ac9d2c2432511fe7524994cc4f55.tar.gz yuzu-1bdb59fc6e52ac9d2c2432511fe7524994cc4f55.tar.bz2 yuzu-1bdb59fc6e52ac9d2c2432511fe7524994cc4f55.tar.lz yuzu-1bdb59fc6e52ac9d2c2432511fe7524994cc4f55.tar.xz yuzu-1bdb59fc6e52ac9d2c2432511fe7524994cc4f55.tar.zst yuzu-1bdb59fc6e52ac9d2c2432511fe7524994cc4f55.zip |
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 = |