solstice-derive 0.1.0

Procedural macros for Solstice.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Shader Interface

What do I want out of a friendly Shader interface?

- Type-safe interface with uniforms.
- Temporary binding of shader (get CURRENT, set SELF, OP, set CURRENT)
- Optional memoization
    - Save uniform update when CPU-side cache is validated


```rust
trait ShaderUpdate {
    fn create_shader(&mut self) -> ShaderKey;
    fn get_shader_mut(&mut self) -> &mut Shader;
    fn use_shader(&mut self, shader: ShaderKey);
}
```