-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
59 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
crates/renderling/src/linkage/compute_downsample_depth_pyramid.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#![allow(dead_code)] | ||
//! Automatically generated with `cd shaders && cargo run --release`. | ||
//! | ||
//! Provides the shader linkage for | ||
//! [cull::compute_downsample_depth_pyramid](crate::cull::compute_downsample_depth_pyramid). | ||
//! | ||
//! **source path**: | ||
//! `crates/renderling/src/linkage/cull-compute_downsample_depth_pyramid.spv` | ||
use super::ShaderLinkage; | ||
use std::sync::Arc; | ||
#[cfg(not(target_arch = "wasm32"))] | ||
pub const ENTRY_POINT: &str = "cull::compute_downsample_depth_pyramid"; | ||
#[cfg(target_arch = "wasm32")] | ||
pub const ENTRY_POINT: &str = "cullcompute_downsample_depth_pyramid"; | ||
pub fn linkage(device: &wgpu::Device) -> ShaderLinkage { | ||
ShaderLinkage { | ||
module: Arc::new(device.create_shader_module(wgpu::include_spirv!( | ||
"cull-compute_downsample_depth_pyramid.spv" | ||
))), | ||
entry_point: ENTRY_POINT, | ||
} | ||
} |
Binary file added
BIN
+6.11 KB
crates/renderling/src/linkage/cull-compute_downsample_depth_pyramid.spv
Binary file not shown.