blob: f8a8ae58e7659d33a3ae35e5933169c375df20b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// precompiled-glsl.slang
// A test that precompiles a slang-module using GLSL functions.
//TEST:COMPILE: tests/library/precompiled-glsl.slang -target spirv -stage fragment -entry main
//TEST:COMPILE: tests/library/precompiled-glsl.slang -target spirv -stage fragment -entry main -embed-downstream-ir
#version 310 es
precision highp float;
precision highp int;
public vec3 func(vec3 v)
{
return v;
}
layout(location = 0) out mediump vec4 dEQP_FragColor;
layout(location = 0) flat in uint out0;
layout(binding = 0, std140) uniform Reference
{
uint out0;
} ref;
void main()
{
dEQP_FragColor = mix(vec4(0.0, 1.0, 0.0, 1.0),
vec4(0.0, 1.0, 0.0, 1.0),
vec4(0.0, 1.0, 0.0, 1.0));
}
|