Add OpConstantNull

This commit is contained in:
ReinUsesLisp 2018-08-28 04:46:18 -03:00
parent 42c456f24f
commit a582641b99
3 changed files with 8 additions and 1 deletions

View file

@ -41,4 +41,8 @@ Ref Module::ConstantSampler(Ref result_type, spv::SamplerAddressingMode addressi
return AddDeclaration(op);
}
Ref Module::ConstantNull(Ref result_type) {
return AddDeclaration(new Op(spv::Op::OpConstantNull, bound, result_type));
}
} // namespace Sirit