blob: b61932932d69972aae56f27cd4fb35d16e0dfc8b [file] [log] [blame]
Ben Clayton13f08902022-10-26 18:36:44 +00001// 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////////////////////////////////////////////////////////////////////////////////
Ben Clayton57ded6a2023-08-22 13:22:22 +000016// File generated by 'tools/src/cmd/gen' using the template:
Ben Clayton13f08902022-10-26 18:36:44 +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
Ben Clayton13f08902022-10-26 18:36:44 +000022////////////////////////////////////////////////////////////////////////////////
23
24@group(1) @binding(0) var arg_0: texture_cube_array<u32>;
25
26// fn textureDimensions(texture: texture_cube_array<u32>, level: i32) -> vec2<u32>
27fn textureDimensions_22b5b6() {
28 var arg_1 = 1i;
29 var res: vec2<u32> = textureDimensions(arg_0, arg_1);
Ben Clayton77a90cb2023-03-06 18:25:08 +000030 prevent_dce = res;
Ben Clayton13f08902022-10-26 18:36:44 +000031}
Ben Clayton77a90cb2023-03-06 18:25:08 +000032@group(2) @binding(0) var<storage, read_write> prevent_dce : vec2<u32>;
Ben Clayton13f08902022-10-26 18:36:44 +000033
34@vertex
35fn vertex_main() -> @builtin(position) vec4<f32> {
36 textureDimensions_22b5b6();
37 return vec4<f32>();
38}
39
40@fragment
41fn fragment_main() {
42 textureDimensions_22b5b6();
43}
44
45@compute @workgroup_size(1)
46fn compute_main() {
47 textureDimensions_22b5b6();
48}