We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cdf79c commit 0e71241Copy full SHA for 0e71241
src/Pipeline/SpirvShader.cpp
@@ -215,7 +215,9 @@ namespace sw
215
CreateConstant(insn).constantValue[0] = ~0u; // represent boolean true as all bits set
216
break;
217
case spv::OpConstantNull:
218
+ case spv::OpUndef:
219
{
220
+ // TODO: consider a real LLVM-level undef. For now, zero is a perfectly good value.
221
// OpConstantNull forms a constant of arbitrary type, all zeros.
222
auto &object = CreateConstant(insn);
223
auto &objectTy = getType(object.type);
@@ -1062,6 +1064,7 @@ namespace sw
1062
1064
case spv::OpConstantTrue:
1063
1065
case spv::OpConstantFalse:
1066
case spv::OpConstantComposite:
1067
1068
case spv::OpExtension:
1069
case spv::OpCapability:
1070
case spv::OpEntryPoint:
0 commit comments