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 // build-pass
use spirv_std::spirv;
#[spirv(fragment)] #[spirv(fragment)]
pub fn main() { pub fn main() {
let vector = glam::BVec2::new(true, true); let vector = glam::BVec2::new(true, true);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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