blob: 469a3631529670474eb7e739b9085af80544e78c [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////////////////////////////////////////////////////////////////////////////////
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
24enable chromium_experimental_read_write_storage_texture;
25@group(1) @binding(0) var arg_0: texture_storage_1d<rgba8unorm, read_write>;
26
27// fn textureStore(texture: texture_storage_1d<rgba8unorm, read_write>, coords: u32, value: vec4<f32>)
28fn textureStore_052a4e() {
29 textureStore(arg_0, 1u, vec4<f32>(1.f));
30}
31@vertex
32fn vertex_main() -> @builtin(position) vec4<f32> {
33 textureStore_052a4e();
34 return vec4<f32>();
35}
36
37@fragment
38fn fragment_main() {
39 textureStore_052a4e();
40}
41
42@compute @workgroup_size(1)
43fn compute_main() {
44 textureStore_052a4e();
45}