Shader_IR: Propagate bindless index into the GL compiler.

This commit is contained in:
Fernando Sahmkow 2020-01-07 17:45:12 -04:00 committed by FernandoS27
parent c066e472b9
commit b6d3153e7e
5 changed files with 54 additions and 24 deletions

View file

@ -1123,7 +1123,7 @@ private:
if (!meta->sampler.IsIndexed()) {
expr += '(' + GetSampler(meta->sampler) + ", ";
} else {
expr += '(' + GetSampler(meta->sampler) + "[0], ";
expr += '(' + GetSampler(meta->sampler) + '[' + Visit(meta->index).AsUint() + "], ";
}
expr += coord_constructors.at(count + (has_array ? 1 : 0) +
(has_shadow && !separate_dc ? 1 : 0) - 1);