dan sinclair | 42e873c | 2021-01-12 18:13:28 +0000 | [diff] [blame] | 1 | // Copyright 2020 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. |
dan sinclair | 6366f68 | 2020-06-23 18:22:21 +0000 | [diff] [blame] | 14 | |
| 15 | fn main() -> f32 { |
| 16 | return ((2. * 3.) - 4.) / 5.; |
| 17 | } |
dan sinclair | d05f93f | 2020-09-21 00:37:08 +0000 | [diff] [blame] | 18 | |
Ben Clayton | 01e4b6f | 2022-01-19 22:46:57 +0000 | [diff] [blame] | 19 | @stage(compute) @workgroup_size(2) |
Ben Clayton | 9328d94 | 2021-04-08 14:39:47 +0000 | [diff] [blame] | 20 | fn ep() { |
dan sinclair | d05f93f | 2020-09-21 00:37:08 +0000 | [diff] [blame] | 21 | } |