Ben Clayton | 93e8f52 | 2021-06-04 20:41:47 +0000 | [diff] [blame] | 1 | [[group(1), binding(0)]] var arg_0 : texture_storage_2d_array<rg32sint, write>; |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 2 | |
| 3 | fn textureNumLayers_058cc3() { |
| 4 | var res : i32 = textureNumLayers(arg_0); |
| 5 | } |
| 6 | |
| 7 | [[stage(vertex)]] |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 8 | fn vertex_main() -> [[builtin(position)]] vec4<f32> { |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 9 | textureNumLayers_058cc3(); |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 10 | return vec4<f32>(); |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 11 | } |
| 12 | |
| 13 | [[stage(fragment)]] |
| 14 | fn fragment_main() { |
| 15 | textureNumLayers_058cc3(); |
| 16 | } |
| 17 | |
Sarah | e6cb51e | 2021-06-29 18:39:44 +0000 | [diff] [blame] | 18 | [[stage(compute), workgroup_size(1)]] |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 19 | fn compute_main() { |
| 20 | textureNumLayers_058cc3(); |
| 21 | } |