Browse Source

shader: Comment why the array component is not read in TMML

nce_cpp
ReinUsesLisp 5 years ago
committed by ameerj
parent
commit
a56f9f4322
  1. 2
      src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp

2
src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp

@ -46,6 +46,8 @@ Shader::TextureType GetType(TextureType type) {
} }
IR::Value MakeCoords(TranslatorVisitor& v, IR::Reg reg, TextureType type) { IR::Value MakeCoords(TranslatorVisitor& v, IR::Reg reg, TextureType type) {
// The ISA reads an array component here, but this is not needed on high level shading languages
// We are dropping this information.
switch (type) { switch (type) {
case TextureType::_1D: case TextureType::_1D:
return v.F(reg); return v.F(reg);

Loading…
Cancel
Save