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!(
10 "../../shaders/light-shader-light_tiling_compute_tile_min_and_max_depth_multisampled.\
11 spv"
12 )
13 }
14 pub fn linkage(device: &wgpu::Device) -> super::ShaderLinkage {
15 log::debug!(
16 "creating native linkage for {}",
17 "light_tiling_compute_tile_min_and_max_depth_multisampled"
18 );
19 super::ShaderLinkage {
20 entry_point: ENTRY_POINT,
21 module: device.create_shader_module(descriptor()).into(),
22 }
23 }
24}
25#[cfg(target_arch = "wasm32")]
26mod target {
27 pub const ENTRY_POINT: &str =
28 "lightshaderlight_tiling_compute_tile_min_and_max_depth_multisampled";
29 pub fn descriptor() -> wgpu::ShaderModuleDescriptor<'static> {
30 wgpu::include_wgsl!(
31 "../../shaders/light-shader-light_tiling_compute_tile_min_and_max_depth_multisampled.\
32 wgsl"
33 )
34 }
35 pub fn linkage(device: &wgpu::Device) -> super::ShaderLinkage {
36 log::debug!(
37 "creating web linkage for {}",
38 "light_tiling_compute_tile_min_and_max_depth_multisampled"
39 );
40 super::ShaderLinkage {
41 entry_point: ENTRY_POINT,
42 module: device.create_shader_module(descriptor()).into(),
43 }
44 }
45}
46pub fn linkage(device: &wgpu::Device) -> ShaderLinkage {
47 target::linkage(device)
48}