blob: 83e9acdad188cfe3af2963a40984bbbf3165f153 [file] [log] [blame]
Antonio Maioranobf8ee352022-07-27 15:02:25 +00001fn clamp_8b1eaa() {
Ben Claytonbe35dec2022-11-04 16:54:02 +00002 var res = clamp(vec3(1), vec3(1), vec3(1));
Antonio Maioranobf8ee352022-07-27 15:02:25 +00003}
4
Antonio Maioranobf8ee352022-07-27 15:02:25 +00005@fragment
6fn fragment_main() {
7 clamp_8b1eaa();
8}
9
10@compute @workgroup_size(1)
11fn compute_main() {
12 clamp_8b1eaa();
13}
Natalie Chouinarde9027182024-06-13 18:50:19 +000014
15struct VertexOutput {
16 @builtin(position)
17 pos : vec4<f32>,
18}
19
20@vertex
21fn vertex_main() -> VertexOutput {
22 var out : VertexOutput;
23 out.pos = vec4<f32>();
24 clamp_8b1eaa();
25 return out;
26}