Skip to content

Commit 9295a8b

Browse files
authored
Add OpImageSampleFootprintNV to IsAllowedSampledImageOperand (#5914)
Closes #5913 * Add OpImageSampleFootprintNV to helpers in opcode.cpp
1 parent a466e9d commit 9295a8b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

source/opcode.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ bool spvOpcodeIsLoad(const spv::Op opcode) {
421421
case spv::Op::OpImageSampleProjExplicitLod:
422422
case spv::Op::OpImageSampleProjDrefImplicitLod:
423423
case spv::Op::OpImageSampleProjDrefExplicitLod:
424+
case spv::Op::OpImageSampleFootprintNV:
424425
case spv::Op::OpImageFetch:
425426
case spv::Op::OpImageGather:
426427
case spv::Op::OpImageDrefGather:
@@ -747,6 +748,7 @@ bool spvOpcodeIsImageSample(const spv::Op opcode) {
747748
case spv::Op::OpImageSparseSampleExplicitLod:
748749
case spv::Op::OpImageSparseSampleDrefImplicitLod:
749750
case spv::Op::OpImageSparseSampleDrefExplicitLod:
751+
case spv::Op::OpImageSampleFootprintNV:
750752
return true;
751753
default:
752754
return false;

source/val/validate_image.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,7 @@ bool IsAllowedSampledImageOperand(spv::Op opcode, ValidationState_t& _) {
994994
case spv::Op::OpImageBlockMatchWindowSSDQCOM:
995995
case spv::Op::OpImageBlockMatchGatherSADQCOM:
996996
case spv::Op::OpImageBlockMatchGatherSSDQCOM:
997+
case spv::Op::OpImageSampleFootprintNV:
997998
return true;
998999
case spv::Op::OpStore:
9991000
if (_.HasCapability(spv::Capability::BindlessTextureNV)) return true;

0 commit comments

Comments
 (0)