Skip to content

Commit 612b55b

Browse files
committed
cargo fmt
1 parent bbc0d2d commit 612b55b

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

shaders/src/filtering_procedurals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
//! */
2020
//! ```
2121
22-
use spirv_std::arch::Derivative;
2322
use shared::*;
23+
use spirv_std::arch::Derivative;
2424
use spirv_std::glam::{vec2, vec3, vec4, Vec2, Vec3, Vec3Swizzles, Vec4, Vec4Swizzles};
2525

2626
// Note: This cfg is incorrect on its surface, it really should be "are we compiling with std", but

shaders/src/skyline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
//! */
1212
//! ```
1313
14-
use spirv_std::arch::Derivative;
1514
use crate::SampleCube;
1615
use shared::*;
16+
use spirv_std::arch::Derivative;
1717
use spirv_std::glam::{vec2, vec3, Vec2, Vec2Swizzles, Vec3, Vec3Swizzles, Vec4, Vec4Swizzles};
1818

1919
// Note: This cfg is incorrect on its surface, it really should be "are we compiling with std", but

src/main.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,8 @@ impl ShaderToyApp {
121121
.features()
122122
.contains(wgpu::Features::SPIRV_SHADER_PASSTHROUGH)
123123
{
124-
let x = include_spirv_raw!(env!(
125-
"shadertoys_shaders.spv"
126-
));
127-
unsafe {
128-
device.create_shader_module_passthrough(x)
129-
}
124+
let x = include_spirv_raw!(env!("shadertoys_shaders.spv"));
125+
unsafe { device.create_shader_module_passthrough(x) }
130126
} else {
131127
device.create_shader_module(include_spirv!(env!("shadertoys_shaders.spv")))
132128
};

0 commit comments

Comments
 (0)