blob: 347f19ebd173076ba06b5e848812f0854ac20fba [file] [log] [blame]
Ben Claytonc0af5c52022-06-02 14:36:10 +00001fn insertBits_428b0b() {
Ben Clayton6c33dce2022-10-25 13:08:45 +00002 var arg_0 = vec3<i32>(1i);
3 var arg_1 = vec3<i32>(1i);
Ben Claytonc0af5c52022-06-02 14:36:10 +00004 var arg_2 = 1u;
5 var arg_3 = 1u;
6 var res : vec3<i32> = insertBits(arg_0, arg_1, arg_2, arg_3);
Ben Clayton77a90cb2023-03-06 18:25:08 +00007 prevent_dce = res;
Ben Claytonc0af5c52022-06-02 14:36:10 +00008}
9
Ben Clayton77a90cb2023-03-06 18:25:08 +000010@group(2) @binding(0) var<storage, read_write> prevent_dce : vec3<i32>;
11
dan sinclairb29892b2022-06-07 13:55:34 +000012@vertex
Ben Claytonc0af5c52022-06-02 14:36:10 +000013fn vertex_main() -> @builtin(position) vec4<f32> {
14 insertBits_428b0b();
15 return vec4<f32>();
16}
17
dan sinclairb29892b2022-06-07 13:55:34 +000018@fragment
Ben Claytonc0af5c52022-06-02 14:36:10 +000019fn fragment_main() {
20 insertBits_428b0b();
21}
22
dan sinclairb29892b2022-06-07 13:55:34 +000023@compute @workgroup_size(1)
Ben Claytonc0af5c52022-06-02 14:36:10 +000024fn compute_main() {
25 insertBits_428b0b();
26}