James Price | 807f3ef | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 1 | // Copyright 2023 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 Clayton | 57ded6a | 2023-08-22 13:22:22 +0000 | [diff] [blame] | 16 | // File generated by 'tools/src/cmd/gen' using the template: |
James Price | 807f3ef | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 17 | // test/tint/builtins/gen/gen.wgsl.tmpl |
| 18 | // |
Ben Clayton | 57ded6a | 2023-08-22 13:22:22 +0000 | [diff] [blame] | 19 | // To regenerate run: './tools/run gen' |
| 20 | // |
| 21 | // Do not modify this file directly |
James Price | 807f3ef | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 22 | //////////////////////////////////////////////////////////////////////////////// |
| 23 | |
| 24 | |
| 25 | enable chromium_experimental_read_write_storage_texture; |
| 26 | @group(1) @binding(0) var arg_0: texture_storage_2d<rgba32uint, read_write>; |
| 27 | |
| 28 | // fn textureStore(texture: texture_storage_2d<rgba32uint, read_write>, coords: vec2<u32>, value: vec4<u32>) |
| 29 | fn textureStore_a24491() { |
| 30 | var arg_1 = vec2<u32>(1u); |
| 31 | var arg_2 = vec4<u32>(1u); |
| 32 | textureStore(arg_0, arg_1, arg_2); |
| 33 | } |
| 34 | @vertex |
| 35 | fn vertex_main() -> @builtin(position) vec4<f32> { |
| 36 | textureStore_a24491(); |
| 37 | return vec4<f32>(); |
| 38 | } |
| 39 | |
| 40 | @fragment |
| 41 | fn fragment_main() { |
| 42 | textureStore_a24491(); |
| 43 | } |
| 44 | |
| 45 | @compute @workgroup_size(1) |
| 46 | fn compute_main() { |
| 47 | textureStore_a24491(); |
| 48 | } |