GLSL: add location layout qualifier before in/out variables.

Bug: tint:1398
Change-Id: I89c985d01d539ed166661ee5e858247cde4702b3
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/78080
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
Stephen White
2022-01-25 19:44:14 +00:00
committed by Tint LUCI CQ
parent fc792989e1
commit 8e01c45e54
181 changed files with 382 additions and 352 deletions

View File

@@ -45,9 +45,9 @@ tint_symbol_3 vert_main(tint_symbol_2 tint_symbol_1) {
wrapper_result.value = inner_result;
return wrapper_result;
}
in vec2 a_particlePos;
in vec2 a_particleVel;
in vec2 a_pos;
layout(location = 0) in vec2 a_particlePos;
layout(location = 1) in vec2 a_particleVel;
layout(location = 2) in vec2 a_pos;
void main() {
tint_symbol_2 inputs;
inputs.a_particlePos = a_particlePos;
@@ -105,7 +105,7 @@ tint_symbol_4 frag_main() {
wrapper_result_1.value = inner_result_1;
return wrapper_result_1;
}
out vec4 value;
layout(location = 0) out vec4 value;
void main() {
tint_symbol_4 outputs;
outputs = frag_main();

View File

@@ -48,9 +48,9 @@ tint_symbol_4 vtx_main(tint_symbol_3 tint_symbol_2) {
wrapper_result.Position = inner_result.Position;
return wrapper_result;
}
in vec4 cur_position;
in vec4 color;
out vec4 vtxFragColor;
layout(location = 0) in vec4 cur_position;
layout(location = 1) in vec4 color;
layout(location = 0) out vec4 vtxFragColor;
void main() {
tint_symbol_3 inputs;
inputs.cur_position = cur_position;
@@ -102,8 +102,8 @@ tint_symbol_7 frag_main(tint_symbol_6 tint_symbol_5) {
wrapper_result_1.value = inner_result_1;
return wrapper_result_1;
}
in vec4 fragColor;
out vec4 value;
layout(location = 0) in vec4 fragColor;
layout(location = 0) out vec4 value;
void main() {
tint_symbol_6 inputs;
inputs.fragColor = fragColor;

View File

@@ -20,7 +20,7 @@ tint_symbol_1 tint_symbol() {
wrapper_result.value = inner_result;
return wrapper_result;
}
out vec4 value;
layout(location = 0) out vec4 value;
void main() {
tint_symbol_1 outputs;
outputs = tint_symbol();

View File

@@ -57,7 +57,7 @@ tint_symbol_3 frag_main() {
wrapper_result_1.value = inner_result_1;
return wrapper_result_1;
}
out vec4 value;
layout(location = 0) out vec4 value;
void main() {
tint_symbol_3 outputs;
outputs = frag_main();