renderling/linkage/
light_tiling_compute_tile_min_and_max_depth_multisampled.rs1#![allow(dead_code)]
2use crate::linkage::ShaderLinkage;
4#[cfg(not(target_arch = "wasm32"))]
5mod target {
6 pub const ENTRY_POINT: &str =
7 "light::shader::light_tiling_compute_tile_min_and_max_depth_multisampled";
8 pub fn descriptor() -> wgpu::ShaderModuleDescriptor<'static> {
9 wgpu :: include_spirv ! ("../../shaders/light-shader-light_tiling_compute_tile_min_and_max_depth_multisampled.spv")
10 }
11 pub fn linkage(device: &wgpu::Device) -> super::ShaderLinkage {
12 log::debug!(
13 "creating native linkage for {}",
14 "light_tiling_compute_tile_min_and_max_depth_multisampled"
15 );
16 super::ShaderLinkage {
17 entry_point: ENTRY_POINT,
18 module: device.create_shader_module(descriptor()).into(),
19 }
20 }
21}
22#[cfg(target_arch = "wasm32")]
23mod target {
24 pub const ENTRY_POINT: &str =
25 "lightshaderlight_tiling_compute_tile_min_and_max_depth_multisampled";
26 pub fn descriptor() -> wgpu::ShaderModuleDescriptor<'static> {
27 wgpu :: include_wgsl ! ("../../shaders/light-shader-light_tiling_compute_tile_min_and_max_depth_multisampled.wgsl")
28 }
29 pub fn linkage(device: &wgpu::Device) -> super::ShaderLinkage {
30 log::debug!(
31 "creating web linkage for {}",
32 "light_tiling_compute_tile_min_and_max_depth_multisampled"
33 );
34 super::ShaderLinkage {
35 entry_point: ENTRY_POINT,
36 module: device.create_shader_module(descriptor()).into(),
37 }
38 }
39}
40pub fn linkage(device: &wgpu::Device) -> ShaderLinkage {
41 target::linkage(device)
42}