rust-gpu/tests/ui/target_features_err.rs

10 lines
195 B
Rust

// build-fail
// compile-flags: -Ctarget-feature=+rayTracingKHR,+ext:SPV_KHR_ray_tracing
use spirv_std as _;
#[spirv(any_hit)]
pub fn main() {
unsafe { spirv_std::arch::terminate_ray() }
}