blob: 3cb4562b947bce3390832bb880127d3da64a76a7 [file] [log] [blame]
James Price807f3ef2023-08-11 00:45:54 +00001// 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 Clayton57ded6a2023-08-22 13:22:22 +000016// File generated by 'tools/src/cmd/gen' using the template:
James Price807f3ef2023-08-11 00:45:54 +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
James Price807f3ef2023-08-11 00:45:54 +000022////////////////////////////////////////////////////////////////////////////////
23
24
25enable 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>)
29fn 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
35fn vertex_main() -> @builtin(position) vec4<f32> {
36 textureStore_a24491();
37 return vec4<f32>();
38}
39
40@fragment
41fn fragment_main() {
42 textureStore_a24491();
43}
44
45@compute @workgroup_size(1)
46fn compute_main() {
47 textureStore_a24491();
48}