JIT SPIR-V

Crate Documentation

jit-spirv helps you integrate SPIR-V shader compilers into your project with minimal amount of code.

How to Use

To compile a runtime shader source just-in-time:

```rust use jitspirv::{jitspirv, CompilationFeedback};

let glslsource = r#" #version 450 layout(binding=0) writeonly buffer _0 { float data[]; }; void main() { data[glGlobalInvocationID.x] = 1.0; } "#; let feedback: CompilationFeedback = jitspirv!(glslsource, comp).unwrap(); let spv: &[u32] = &feedback.spv; ```

For the full list of options please refer to the documentation of inline-spirv.

License

This project is licensed under either of

at your option.