Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Check shaders with naga before hot reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
darthdeus committed Nov 5, 2023
1 parent a2bc110 commit 37feaac
Show file tree
Hide file tree
Showing 10 changed files with 330 additions and 258 deletions.
26 changes: 23 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions comfy-wgpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ comfy-core = { path = "../comfy-core", version = "0.2.0" }
wgpu = { version = "0.17.1", features = ["expose-ids"] }
wgpu-types = "0.17.0"
winit = { version = "0.28.3", default-features = false, features = ["x11"] }
naga = { version = "0.14.0", features = ["wgsl-in"] }

egui = "0.23.0"
egui-wgpu = "0.23.0"
Expand Down
14 changes: 14 additions & 0 deletions comfy-wgpu/shaders/error.wgsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

@fragment
fn fs_main(in: VertexOutput) -> @location(0) vec4<f32> {
let tex = textureSample(t_diffuse, s_diffuse, in.tex_coords);

var final_color: vec4<f32> = vec4<f32>(
1.0,
in.tex_coords.x,
in.tex_coords.y,
1.0
);

return final_color;
}
Loading

0 comments on commit 37feaac

Please sign in to comment.