diff options
| author | 2021-06-12 23:28:06 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:35 -0400 | |
| commit | 487057b8d2bd79892423ad3a1b5a96d0407b307a (patch) | |
| tree | 2015b09c8e2d24c02bd36ddbf21f788973ae4bfe /src/shader_recompiler/frontend/maxwell/translate/impl | |
| parent | vulkan_device: Enable VK_EXT_vertex_input_dynamic_state (diff) | |
| download | yuzu-487057b8d2bd79892423ad3a1b5a96d0407b307a.tar.gz yuzu-487057b8d2bd79892423ad3a1b5a96d0407b307a.tar.xz yuzu-487057b8d2bd79892423ad3a1b5a96d0407b307a.zip | |
shader: Comment why the array component is not read in TMML
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/translate/impl')
| -rw-r--r-- | src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp index 667c69a0d..aea3c0e62 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp | |||
| @@ -46,6 +46,8 @@ Shader::TextureType GetType(TextureType type) { | |||
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | IR::Value MakeCoords(TranslatorVisitor& v, IR::Reg reg, TextureType type) { | 48 | IR::Value MakeCoords(TranslatorVisitor& v, IR::Reg reg, TextureType type) { |
| 49 | // The ISA reads an array component here, but this is not needed on high level shading languages | ||
| 50 | // We are dropping this information. | ||
| 49 | switch (type) { | 51 | switch (type) { |
| 50 | case TextureType::_1D: | 52 | case TextureType::_1D: |
| 51 | return v.F(reg); | 53 | return v.F(reg); |