mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 07:51:08 +01:00
The IR doesn't allow having structs has bindings for entry point input/output, so the glsl frontend must flatten them. Glsl defines that the locations are sequential from the block base location.
15 lines
187 B
GLSL
15 lines
187 B
GLSL
#version 450
|
|
|
|
layout(location = 0) in VertexData {
|
|
vec2 position;
|
|
vec2 a;
|
|
} vert;
|
|
|
|
layout(location = 0) out FragmentData {
|
|
vec2 position;
|
|
vec2 a;
|
|
} frag;
|
|
|
|
void main() {
|
|
}
|