mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-25 00:04:11 +00:00
Remove some now-obsolete #[rustfmt::skip]
workarounds for rustfmt
bugs.
This commit is contained in:
parent
4a987f3eb0
commit
188aba26fc
@ -5,9 +5,6 @@ use crate::vector::VectorTruncateInto;
|
||||
#[cfg(target_arch = "spirv")]
|
||||
use core::arch::asm;
|
||||
|
||||
// Rustfmt formats long marker trait impls over multiple lines which makes them
|
||||
// harder to read.
|
||||
#[rustfmt::skip]
|
||||
mod params;
|
||||
|
||||
/// Contains extra image operands
|
||||
|
@ -4,8 +4,6 @@
|
||||
use spirv_std::spirv;
|
||||
|
||||
#[spirv(ray_generation)]
|
||||
// Rustfmt will eat long attributes (https://github.com/rust-lang/rustfmt/issues/4579)
|
||||
#[rustfmt::skip]
|
||||
pub fn main(
|
||||
#[spirv(descriptor_set = 0, binding = 0)]
|
||||
acceleration_structure: &spirv_std::ray_tracing::AccelerationStructure,
|
||||
|
@ -6,8 +6,6 @@ use spirv_std::ray_tracing::{AccelerationStructure, RayFlags, RayQuery};
|
||||
use spirv_std::spirv;
|
||||
|
||||
#[spirv(fragment)]
|
||||
// Rustfmt eats long attributes <https://github.com/rust-lang/rustfmt/issues/4579>
|
||||
#[rustfmt::skip]
|
||||
pub fn main(
|
||||
#[spirv(descriptor_set = 0, binding = 0)] acceleration_structure: &AccelerationStructure,
|
||||
#[spirv(ray_payload)] payload: &mut Vec3,
|
||||
|
@ -4,8 +4,6 @@
|
||||
use spirv_std::spirv;
|
||||
|
||||
#[spirv(ray_generation)]
|
||||
// Rustfmt will eat long attributes (https://github.com/rust-lang/rustfmt/issues/4579)
|
||||
#[rustfmt::skip]
|
||||
pub fn main(
|
||||
#[spirv(descriptor_set = 0, binding = 0)]
|
||||
acceleration_structure: &spirv_std::ray_tracing::AccelerationStructure,
|
||||
|
Loading…
Reference in New Issue
Block a user