dawn-cmake/test/expressions/literals/inf.spvasm.expected.glsl
Stephen White 2fe0f4b42b 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>
2021-11-16 15:15:36 +00:00

47 lines
1.1 KiB
GLSL

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.