mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-22 06:45:13 +00:00
Fixed bad imports
This commit is contained in:
parent
c3a9b9fd3e
commit
68ddddb8c4
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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 {
|
||||
|
@ -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() };
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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]
|
||||
|
@ -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 {
|
||||
|
@ -1,7 +1,7 @@
|
||||
use spirv_std::spirv;
|
||||
|
||||
// build-pass
|
||||
|
||||
use spirv_std::spirv;
|
||||
|
||||
#[spirv(fragment)]
|
||||
pub fn main() {
|
||||
spirv_std::arch::kill();
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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]
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user