shader,spirv: Implement ImageQueryLod.
This commit is contained in:
parent
287d4a38de
commit
56c8c42cf8
9 changed files with 38 additions and 1 deletions
|
@ -383,7 +383,8 @@ void VisitUsages(Info& info, IR::Inst& inst) {
|
|||
case IR::Opcode::ImageGather:
|
||||
case IR::Opcode::ImageGatherDref:
|
||||
case IR::Opcode::ImageFetch:
|
||||
case IR::Opcode::ImageQueryDimensions: {
|
||||
case IR::Opcode::ImageQueryDimensions:
|
||||
case IR::Opcode::ImageQueryLod: {
|
||||
const TextureType type{inst.Flags<IR::TextureInstInfo>().type};
|
||||
info.uses_sampled_1d |= type == TextureType::Color1D || type == TextureType::ColorArray1D ||
|
||||
type == TextureType::Shadow1D || type == TextureType::ShadowArray1D;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue