mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
Merge pull request #3498 from ReinUsesLisp/texel-fetch-glsl
gl_shader_decompiler: Add layer component to texelFetch
This commit is contained in:
commit
1c45c8086e
1 changed files with 9 additions and 6 deletions
|
@ -2009,16 +2009,19 @@ private:
|
||||||
expr += GetSampler(meta->sampler);
|
expr += GetSampler(meta->sampler);
|
||||||
expr += ", ";
|
expr += ", ";
|
||||||
|
|
||||||
expr += constructors.at(operation.GetOperandsCount() - 1);
|
expr += constructors.at(operation.GetOperandsCount() + (meta->array ? 1 : 0) - 1);
|
||||||
expr += '(';
|
expr += '(';
|
||||||
for (std::size_t i = 0; i < count; ++i) {
|
for (std::size_t i = 0; i < count; ++i) {
|
||||||
expr += VisitOperand(operation, i).AsInt();
|
if (i > 0) {
|
||||||
const std::size_t next = i + 1;
|
|
||||||
if (next == count)
|
|
||||||
expr += ')';
|
|
||||||
else if (next < count)
|
|
||||||
expr += ", ";
|
expr += ", ";
|
||||||
}
|
}
|
||||||
|
expr += VisitOperand(operation, i).AsInt();
|
||||||
|
}
|
||||||
|
if (meta->array) {
|
||||||
|
expr += ", ";
|
||||||
|
expr += Visit(meta->array).AsInt();
|
||||||
|
}
|
||||||
|
expr += ')';
|
||||||
|
|
||||||
if (meta->lod && !meta->sampler.IsBuffer()) {
|
if (meta->lod && !meta->sampler.IsBuffer()) {
|
||||||
expr += ", ";
|
expr += ", ";
|
||||||
|
|
Loading…
Reference in a new issue