renderling/linkage/
light_tiling_compute_tile_min_and_max_depth.rs

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