Skip to content

Commit

Permalink
asm: support sampler and as types (#624)
Browse files Browse the repository at this point in the history
* asm: support sampler and as types

* fmt
  • Loading branch information
msiglreith committed May 20, 2021
1 parent fc268da commit 75d0d8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/rustc_codegen_spirv/src/builder/spirv_asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 75d0d8f

Please sign in to comment.