mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-03 10:45:36 +00:00
Kindly donated by Brandon Jones and Austin Eng. Tint has been used to convert all the deprecated attributes to the new style. In doing so, comments have been stripped. These are not massively important for the benchmarking. Bindings have also been adjusted to be sequential and unique so that the MSL backend doesn't have to deal with binding remapping. Existing benchmark files that used an underscore '_' have been renamed to use a dash '-' instead, to match the new files. Change-Id: If5fb507b981f107ed570f6eedb55b232448f67aa Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/77443 Reviewed-by: Brandon Jones <bajones@google.com> Reviewed-by: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
48 lines
944 B
GLSL
48 lines
944 B
GLSL
SKIP: FAILED
|
|
|
|
#version 310 es
|
|
precision mediump float;
|
|
|
|
struct Input {
|
|
vec4 color;
|
|
};
|
|
struct Output {
|
|
vec4 color;
|
|
};
|
|
struct tint_symbol_3 {
|
|
vec4 color;
|
|
};
|
|
struct tint_symbol_4 {
|
|
vec4 color;
|
|
};
|
|
|
|
Output tint_symbol_inner(Input tint_symbol_1) {
|
|
Output tint_symbol_5 = Output(tint_symbol_1.color);
|
|
return tint_symbol_5;
|
|
}
|
|
|
|
tint_symbol_4 tint_symbol(tint_symbol_3 tint_symbol_2) {
|
|
Input tint_symbol_6 = Input(tint_symbol_2.color);
|
|
Output inner_result = tint_symbol_inner(tint_symbol_6);
|
|
tint_symbol_4 wrapper_result = tint_symbol_4(vec4(0.0f, 0.0f, 0.0f, 0.0f));
|
|
wrapper_result.color = inner_result.color;
|
|
return wrapper_result;
|
|
}
|
|
in vec4 color;
|
|
out vec4 color;
|
|
void main() {
|
|
tint_symbol_3 inputs;
|
|
inputs.color = color;
|
|
tint_symbol_4 outputs;
|
|
outputs = tint_symbol(inputs);
|
|
color = outputs.color;
|
|
}
|
|
|
|
|
|
Error parsing GLSL shader:
|
|
ERROR: 0:30: 'color' : redefinition
|
|
ERROR: 1 compilation errors. No code generated.
|
|
|
|
|
|
|