1#![cfg_attr(target_arch = "spirv", feature(repr_simd, core_intrinsics))]
4#![cfg_attr(target_arch = "spirv", no_std)]
5
6mod opcodes;
7pub use opcodes::*;
8
9mod interpreter;
10pub use interpreter::*;
11
12mod sdf;
13pub use sdf::*;
14
15mod structs;
16pub use structs::*;
17
18#[cfg(not(target_arch = "spirv"))]
19pub fn get_glsl_sdf_library_code() -> &'static str {
20 include_str!("sdf.glsl")
21}
22
23#[cfg(not(target_arch = "spirv"))]
24pub fn get_glsl_sdf_interpreter_code() -> &'static str {
25 include_str!("interpreter.glsl")
26}