asm: support sampler and as types (#624)

* asm: support sampler and as types

* fmt
This commit is contained in:
Markus Siglreithmaier 2021-05-20 09:08:54 +02:00 committed by GitHub
parent fc268da041
commit 75d0d8f1ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -311,6 +311,10 @@ impl<'cx, 'tcx> Builder<'cx, 'tcx> {
image_type: inst.operands[0].unwrap_id_ref(),
}
.def(self.span(), self),
Op::TypeSampler => SpirvType::Sampler.def(self.span(), self),
Op::TypeAccelerationStructureKHR => {
SpirvType::AccelerationStructureKhr.def(self.span(), self)
}
Op::TypeRayQueryKHR => SpirvType::RayQueryKhr.def(self.span(), self),
Op::Variable => {
// OpVariable with Function storage class should be emitted inside the function,