Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 1 | // 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 | //////////////////////////////////////////////////////////////////////////////// |
| 16 | // File generated by tools/src/cmd/gen |
| 17 | // using the template: |
| 18 | // test/tint/builtins/gen/gen.wgsl.tmpl |
| 19 | // |
| 20 | // Do not modify this file directly |
| 21 | //////////////////////////////////////////////////////////////////////////////// |
| 22 | |
| 23 | |
| 24 | enable f16; |
| 25 | |
| 26 | // fn sign(vec<2, f16>) -> vec<2, f16> |
| 27 | fn sign_ccdb3c() { |
| 28 | var arg_0 = vec2<f16>(f16()); |
| 29 | var res: vec2<f16> = sign(arg_0); |
| 30 | } |
| 31 | |
| 32 | @vertex |
| 33 | fn vertex_main() -> @builtin(position) vec4<f32> { |
| 34 | sign_ccdb3c(); |
| 35 | return vec4<f32>(); |
| 36 | } |
| 37 | |
| 38 | @fragment |
| 39 | fn fragment_main() { |
| 40 | sign_ccdb3c(); |
| 41 | } |
| 42 | |
| 43 | @compute @workgroup_size(1) |
| 44 | fn compute_main() { |
| 45 | sign_ccdb3c(); |
| 46 | } |