shader: Implement TLD

This commit is contained in:
FernandoS27 2021-03-26 20:51:05 +01:00 committed by ameerj
parent 7a1c14269e
commit dc1a9a3bed
8 changed files with 174 additions and 16 deletions

View file

@ -382,6 +382,7 @@ void VisitUsages(Info& info, IR::Inst& inst) {
case IR::Opcode::ImageSampleDrefExplicitLod:
case IR::Opcode::ImageGather:
case IR::Opcode::ImageGatherDref:
case IR::Opcode::ImageFetch:
case IR::Opcode::ImageQueryDimensions: {
const TextureType type{inst.Flags<IR::TextureInstInfo>().type};
info.uses_sampled_1d |= type == TextureType::Color1D || type == TextureType::ColorArray1D ||