blob: 400660ce25f890fde138da298b5124c89e791612 [file] [log] [blame]
dan sinclairefe9c492022-11-21 18:00:01 +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:
dan sinclairefe9c492022-11-21 18:00:01 +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
dan sinclairefe9c492022-11-21 18:00:01 +000022////////////////////////////////////////////////////////////////////////////////
23
24
25// fn radians(vec<2, fa>) -> vec<2, fa>
26fn radians_44a9f8() {
27 const arg_0 = vec2(1.);
28 var res = radians(arg_0);
29}
dan sinclairefe9c492022-11-21 18:00:01 +000030@vertex
31fn vertex_main() -> @builtin(position) vec4<f32> {
32 radians_44a9f8();
33 return vec4<f32>();
34}
35
36@fragment
37fn fragment_main() {
38 radians_44a9f8();
39}
40
41@compute @workgroup_size(1)
42fn compute_main() {
43 radians_44a9f8();
44}