spirv-compiler 0.2.0

Convenience wrapper for shaderc in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#version 450

#include "../test-spirv/structs.glsl"

layout(location = 0) in vec4 vertex;
layout(location = 0) out vec4 V;

layout(std430, set = 0, binding = 1) buffer readonly testStructBuffer { TestStruct structs[]; };

void main() {
    V = vertex;
}