We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f90a763 commit 1908392Copy full SHA for 1908392
source/slang/slang-ir-legalize-types.cpp
@@ -2149,6 +2149,12 @@ static LegalVal legalizeInst(
2149
// This case should only happen when compiling for a target that does not support
2150
// GpuForeach
2151
return LegalVal();
2152
+ case kIROp_StructuredBufferLoad:
2153
+ // empty types are removed, so we need to make sure that we're still
2154
+ // loading a none type when we try and load from a to-be-optimized
2155
+ // out structured buffer
2156
+ SLANG_ASSERT(type.flavor == LegalType::Flavor::none);
2157
+ return LegalVal();
2158
default:
2159
// TODO: produce a user-visible diagnostic here
2160
SLANG_UNEXPECTED("non-simple operand(s)!");
0 commit comments