Fixed bad imports

This commit is contained in:
Sylvester Hesp 2022-10-19 12:19:27 +02:00 committed by Eduard-Mihai Burtescu
parent c3a9b9fd3e
commit 68ddddb8c4
15 changed files with 29 additions and 30 deletions

View File

@ -1,7 +1,7 @@
use spirv_std::spirv;
// build-pass
use spirv_std::spirv;
#[spirv(fragment)]
pub fn main() {
let vector = glam::BVec2::new(true, true);

View File

@ -1,7 +1,7 @@
use spirv_std::spirv;
// build-pass
use spirv_std::spirv;
#[spirv(fragment)]
pub fn main() {
let vector = glam::BVec2::new(true, false);

View File

@ -1,8 +1,8 @@
use spirv_std::spirv;
// build-pass
// compile-flags: -Ctarget-feature=+RayTracingKHR,+ext:SPV_KHR_ray_tracing
use spirv_std::spirv;
#[spirv(ray_generation)]
pub fn main(#[spirv(ray_payload)] payload: &mut glam::Vec3) {
unsafe {

View File

@ -1,9 +1,9 @@
use spirv_std::spirv;
// build-pass
//
// compile-flags: -C target-feature=+DemoteToHelperInvocationEXT,+ext:SPV_EXT_demote_to_helper_invocation
use spirv_std::spirv;
#[spirv(fragment)]
pub fn main() {
unsafe { spirv_std::arch::demote_to_helper_invocation() };

View File

@ -1,8 +1,8 @@
use spirv_std::spirv;
// build-pass
// compile-flags: -C target-feature=+GeometryStreams
use spirv_std::spirv;
#[spirv(geometry(input_lines = 2, output_points = 2))]
pub fn main() {
unsafe {

View File

@ -1,8 +1,8 @@
use spirv_std::spirv;
// build-pass
// compile-flags: -Ctarget-feature=+Geometry
use spirv_std::spirv;
#[spirv(geometry(input_lines = 2, output_points = 2))]
pub fn main() {
unsafe {

View File

@ -1,8 +1,8 @@
use spirv_std::spirv;
// build-pass
// compile-flags: -Ctarget-feature=+Geometry
use spirv_std::spirv;
#[spirv(geometry(input_lines = 2, output_points = 2))]
pub fn main() {
unsafe {

View File

@ -1,8 +1,8 @@
use spirv_std::spirv;
// build-pass
// compile-flags: -C target-feature=+GeometryStreams
use spirv_std::spirv;
#[spirv(geometry(input_lines = 2, output_points = 2))]
pub fn main() {
unsafe {

View File

@ -1,8 +1,8 @@
use spirv_std::spirv;
// build-pass
// compile-flags: -Ctarget-feature=+RayTracingKHR,+ext:SPV_KHR_ray_tracing
use spirv_std::spirv;
#[spirv(ray_generation)]
// Rustfmt will eat long attributes (https://github.com/rust-lang/rustfmt/issues/4579)
#[rustfmt::skip]

View File

@ -1,8 +1,8 @@
use spirv_std::spirv;
// build-pass
// compile-flags: -Ctarget-feature=+RayTracingKHR,+ext:SPV_KHR_ray_tracing
use spirv_std::spirv;
#[spirv(any_hit)]
pub fn main() {
unsafe {

View File

@ -1,7 +1,7 @@
use spirv_std::spirv;
// build-pass
use spirv_std::spirv;
#[spirv(fragment)]
pub fn main() {
spirv_std::arch::kill();

View File

@ -1,8 +1,8 @@
use spirv_std::spirv;
// build-pass
// compile-flags: -Ctarget-feature=+RayTracingKHR,+ext:SPV_KHR_ray_tracing
use spirv_std::spirv;
#[spirv(intersection)]
pub fn main() {
unsafe {

View File

@ -1,8 +1,8 @@
use spirv_std::spirv;
// build-pass
// compile-flags: -Ctarget-feature=+RayTracingKHR,+ext:SPV_KHR_ray_tracing
use spirv_std::spirv;
#[spirv(any_hit)]
pub fn main() {
unsafe {

View File

@ -1,8 +1,8 @@
use spirv_std::spirv;
// build-pass
// compile-flags: -Ctarget-feature=+RayTracingKHR,+ext:SPV_KHR_ray_tracing
use spirv_std::spirv;
#[spirv(ray_generation)]
// Rustfmt will eat long attributes (https://github.com/rust-lang/rustfmt/issues/4579)
#[rustfmt::skip]

View File

@ -1,9 +1,8 @@
use spirv_std::spirv;
// build-pass
// compile-flags: -C target-feature=+StorageImageWriteWithoutFormat
use glam::*;
use spirv_std::spirv;
#[spirv(compute(threads(1)))]
pub fn main_cs(