blob: e7339325cb89ae2adb5ccdcb760f207980da4e93 [file] [log] [blame]
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +00001// Copyright 2022 The Tint Authors.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15////////////////////////////////////////////////////////////////////////////////
Ben Clayton57ded6a2023-08-22 13:22:22 +000016// File generated by 'tools/src/cmd/gen' using the template:
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000017// test/tint/builtins/gen/gen.wgsl.tmpl
18//
Ben Clayton57ded6a2023-08-22 13:22:22 +000019// To regenerate run: './tools/run gen'
20//
21// Do not modify this file directly
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000022////////////////////////////////////////////////////////////////////////////////
23
24
25enable f16;
26
27// fn pow(vec<3, f16>, vec<3, f16>) -> vec<3, f16>
28fn pow_fa5429() {
dan sinclaird9b68eb2022-11-10 00:32:12 +000029 var arg_0 = vec3<f16>(1.h);
30 var arg_1 = vec3<f16>(1.h);
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000031 var res: vec3<f16> = pow(arg_0, arg_1);
Ben Clayton77a90cb2023-03-06 18:25:08 +000032 prevent_dce = res;
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000033}
Ben Clayton77a90cb2023-03-06 18:25:08 +000034@group(2) @binding(0) var<storage, read_write> prevent_dce : vec3<f16>;
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000035
36@vertex
37fn vertex_main() -> @builtin(position) vec4<f32> {
38 pow_fa5429();
39 return vec4<f32>();
40}
41
42@fragment
43fn fragment_main() {
44 pow_fa5429();
45}
46
47@compute @workgroup_size(1)
48fn compute_main() {
49 pow_fa5429();
50}