Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ exclude = ["./shaders"]
resolver = "2"

[workspace.dependencies]
acorn_prng = "3.0"
assert_approx_eq = "1.1.0"
async-channel = "1.8"
bytemuck = { version = "1.13.0", features = ["derive"] }
Expand Down
Binary file added blender/shadow_mapping_point.blend
Binary file not shown.
7 changes: 6 additions & 1 deletion crates/renderling-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,12 @@ fn wgsl(spv_filepath: impl AsRef<std::path::Path>, destination: impl AsRef<std::
let module = naga::front::spv::parse_u8_slice(&bytes, &opts).unwrap();
let mut validator =
naga::valid::Validator::new(Default::default(), naga::valid::Capabilities::empty());
let info = validator.validate(&module).unwrap();
let info = validator.validate(&module).unwrap_or_else(|e| {
panic!(
"Could not validate '{}': {e}",
spv_filepath.as_ref().display(),
)
});
let wgsl =
naga::back::wgsl::write_string(&module, &info, naga::back::wgsl::WriterFlags::empty())
.unwrap();
Expand Down
1 change: 1 addition & 0 deletions crates/renderling/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ wgpu = { workspace = true, features = ["spirv"] }
winit = { workspace = true, optional = true }

[dev-dependencies]
acorn_prng.workspace = true
assert_approx_eq = {workspace = true}
ctor = "0.2.2"
env_logger = {workspace = true}
Expand Down
Binary file modified crates/renderling/shaders/light-shadow_mapping_vertex.spv
Binary file not shown.
178 changes: 89 additions & 89 deletions crates/renderling/shaders/light-shadow_mapping_vertex.wgsl

Large diffs are not rendered by default.

Binary file modified crates/renderling/shaders/stage-renderlet_fragment.spv
Binary file not shown.
Loading
Loading