[package] name = "transhader" version = "0.1.1" edition = "2021" description = "Transpile shaders on the fly using procedural macros." authors = ["Mikail Plotzky"] license = "MIT OR Apache-2.0" keywords = ["naga", "shaders", "proc-macro", "hlsl", "glsl"] categories = ["compilers", "graphics", "rendering::data-formats"] repository = "https://github.com/drafteddev/transhader" documentation = "https://docs.rs/transhader" [dependencies] ron = "0.8.1" serde = { version = "1.0.197", features = ["derive"] } naga = "0.19.2" [features] default = [ "from-glsl", "from-spv", "from-wgsl", "to-glsl", "to-hlsl", "to-msl", "to-spv", "to-wgsl", ] # Allow transpiling from GLSL. from-glsl = ["naga/glsl-in"] # Allow transpiling from SPIR-V. from-spv = ["naga/spv-in"] # Allow transpiling from WGSL. from-wgsl = ["naga/wgsl-in"] # Allow transpiling to GLSL. to-glsl = ["naga/glsl-out"] # Allow transpiling to MSL. to-msl = ["naga/msl-out"] # Allow transpiling to SPIR-V. to-spv = ["naga/spv-out"] # Allow transpiling to WGSL. to-wgsl = ["naga/wgsl-out"] # Allow transpiling to HLSL. to-hlsl = ["naga/hlsl-out"] [lib] proc-macro = true [[example]] name = "transpile" path = "examples/transpile.rs" [[example]] name = "transpile_file" path = "examples/transpile_file.rs"