mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
GLSL: add .expected.glsl files for all tests.
Bug: tint:1301 Change-Id: Id3a591a2fa0dfdb112046d5c57defbae07483e0d Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/69480 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
committed by
Tint LUCI CQ
parent
2551458aef
commit
2fe0f4b42b
46
test/expressions/literals/-inf.spvasm.expected.glsl
Normal file
46
test/expressions/literals/-inf.spvasm.expected.glsl
Normal file
@@ -0,0 +1,46 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
vec4 out_var_SV_TARGET = vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
|
||||
void main_1() {
|
||||
out_var_SV_TARGET = vec4(asfloat(0xff800000u), asfloat(0xff800000u), asfloat(0xff800000u), asfloat(0xff800000u));
|
||||
return;
|
||||
}
|
||||
|
||||
struct main_out {
|
||||
vec4 out_var_SV_TARGET_1;
|
||||
};
|
||||
struct tint_symbol_1 {
|
||||
vec4 out_var_SV_TARGET_1;
|
||||
};
|
||||
|
||||
main_out tint_symbol_inner() {
|
||||
main_1();
|
||||
main_out tint_symbol_2 = main_out(out_var_SV_TARGET);
|
||||
return tint_symbol_2;
|
||||
}
|
||||
|
||||
tint_symbol_1 tint_symbol() {
|
||||
main_out inner_result = tint_symbol_inner();
|
||||
tint_symbol_1 wrapper_result = tint_symbol_1(vec4(0.0f, 0.0f, 0.0f, 0.0f));
|
||||
wrapper_result.out_var_SV_TARGET_1 = inner_result.out_var_SV_TARGET_1;
|
||||
return wrapper_result;
|
||||
}
|
||||
out vec4 out_var_SV_TARGET_1;
|
||||
void main() {
|
||||
tint_symbol_1 outputs;
|
||||
outputs = tint_symbol();
|
||||
out_var_SV_TARGET_1 = outputs.out_var_SV_TARGET_1;
|
||||
}
|
||||
|
||||
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:7: 'asfloat' : no matching overloaded function found
|
||||
ERROR: 0:7: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
46
test/expressions/literals/inf.spvasm.expected.glsl
Normal file
46
test/expressions/literals/inf.spvasm.expected.glsl
Normal file
@@ -0,0 +1,46 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
vec4 out_var_SV_TARGET = vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
|
||||
void main_1() {
|
||||
out_var_SV_TARGET = vec4(asfloat(0x7f800000u), asfloat(0x7f800000u), asfloat(0x7f800000u), asfloat(0x7f800000u));
|
||||
return;
|
||||
}
|
||||
|
||||
struct main_out {
|
||||
vec4 out_var_SV_TARGET_1;
|
||||
};
|
||||
struct tint_symbol_1 {
|
||||
vec4 out_var_SV_TARGET_1;
|
||||
};
|
||||
|
||||
main_out tint_symbol_inner() {
|
||||
main_1();
|
||||
main_out tint_symbol_2 = main_out(out_var_SV_TARGET);
|
||||
return tint_symbol_2;
|
||||
}
|
||||
|
||||
tint_symbol_1 tint_symbol() {
|
||||
main_out inner_result = tint_symbol_inner();
|
||||
tint_symbol_1 wrapper_result = tint_symbol_1(vec4(0.0f, 0.0f, 0.0f, 0.0f));
|
||||
wrapper_result.out_var_SV_TARGET_1 = inner_result.out_var_SV_TARGET_1;
|
||||
return wrapper_result;
|
||||
}
|
||||
out vec4 out_var_SV_TARGET_1;
|
||||
void main() {
|
||||
tint_symbol_1 outputs;
|
||||
outputs = tint_symbol();
|
||||
out_var_SV_TARGET_1 = outputs.out_var_SV_TARGET_1;
|
||||
}
|
||||
|
||||
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:7: 'asfloat' : no matching overloaded function found
|
||||
ERROR: 0:7: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
0
test/expressions/literals/intmin.wgsl.expected.glsl
Normal file
0
test/expressions/literals/intmin.wgsl.expected.glsl
Normal file
46
test/expressions/literals/nan.spvasm.expected.glsl
Normal file
46
test/expressions/literals/nan.spvasm.expected.glsl
Normal file
@@ -0,0 +1,46 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
vec4 out_var_SV_TARGET = vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
|
||||
void main_1() {
|
||||
out_var_SV_TARGET = vec4(asfloat(0x7fc00000u), asfloat(0x7fc00000u), asfloat(0x7fc00000u), asfloat(0x7fc00000u));
|
||||
return;
|
||||
}
|
||||
|
||||
struct main_out {
|
||||
vec4 out_var_SV_TARGET_1;
|
||||
};
|
||||
struct tint_symbol_1 {
|
||||
vec4 out_var_SV_TARGET_1;
|
||||
};
|
||||
|
||||
main_out tint_symbol_inner() {
|
||||
main_1();
|
||||
main_out tint_symbol_2 = main_out(out_var_SV_TARGET);
|
||||
return tint_symbol_2;
|
||||
}
|
||||
|
||||
tint_symbol_1 tint_symbol() {
|
||||
main_out inner_result = tint_symbol_inner();
|
||||
tint_symbol_1 wrapper_result = tint_symbol_1(vec4(0.0f, 0.0f, 0.0f, 0.0f));
|
||||
wrapper_result.out_var_SV_TARGET_1 = inner_result.out_var_SV_TARGET_1;
|
||||
return wrapper_result;
|
||||
}
|
||||
out vec4 out_var_SV_TARGET_1;
|
||||
void main() {
|
||||
tint_symbol_1 outputs;
|
||||
outputs = tint_symbol();
|
||||
out_var_SV_TARGET_1 = outputs.out_var_SV_TARGET_1;
|
||||
}
|
||||
|
||||
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:7: 'asfloat' : no matching overloaded function found
|
||||
ERROR: 0:7: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user