From 75d0d8f1ac0c4b23bbc104482eca591da07ff9f5 Mon Sep 17 00:00:00 2001 From: Markus Siglreithmaier Date: Thu, 20 May 2021 09:08:54 +0200 Subject: [PATCH] asm: support sampler and as types (#624) * asm: support sampler and as types * fmt --- crates/rustc_codegen_spirv/src/builder/spirv_asm.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/rustc_codegen_spirv/src/builder/spirv_asm.rs b/crates/rustc_codegen_spirv/src/builder/spirv_asm.rs index 810aa0678a..1f816fa233 100644 --- a/crates/rustc_codegen_spirv/src/builder/spirv_asm.rs +++ b/crates/rustc_codegen_spirv/src/builder/spirv_asm.rs @@ -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,