mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-26 08:45:43 +00:00
Fixed bad imports
This commit is contained in:
parent
c3a9b9fd3e
commit
68ddddb8c4
@ -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);
|
||||||
|
@ -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);
|
||||||
|
@ -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 {
|
||||||
|
@ -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() };
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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]
|
||||||
|
@ -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 {
|
||||||
|
@ -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();
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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]
|
||||||
|
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user