Skip to main content

euv_engine/raytracing/pipeline/shader/source/
fn.rs

1use super::*;
2
3/// Returns the GLSL ES 3.00 vertex shader source for the WebGL2 backend.
4///
5/// # Returns
6///
7/// - `&'static str` - The vertex shader source.
8pub fn raytrace_glsl_vertex() -> &'static str {
9    RAYTRACE_GLSL_VERTEX
10}
11
12/// Returns the GLSL ES 3.00 fragment shader source for the WebGL2
13/// backend.
14///
15/// # Returns
16///
17/// - `&'static str` - The fragment shader source.
18pub fn raytrace_glsl_fragment() -> &'static str {
19    RAYTRACE_GLSL_FRAGMENT
20}
21
22/// Returns the WGSL shader source for the WebGPU backend.
23///
24/// # Returns
25///
26/// - `&'static str` - The combined vertex and fragment shader source.
27pub fn raytrace_wgsl() -> &'static str {
28    RAYTRACE_WGSL
29}