Ben Clayton | 01e4b6f | 2022-01-19 22:46:57 +0000 | [diff] [blame] | 1 | @group(1) @binding(0) var arg_0 : texture_3d<u32>; |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 2 | |
| 3 | fn textureLoad_a9a9f5() { |
Ben Clayton | c3adc78 | 2022-10-25 13:08:45 +0000 | [diff] [blame] | 4 | var res : vec4<u32> = textureLoad(arg_0, vec3<i32>(), 1i); |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 5 | } |
| 6 | |
dan sinclair | b29892b | 2022-06-07 13:55:34 +0000 | [diff] [blame] | 7 | @vertex |
Ben Clayton | 01e4b6f | 2022-01-19 22:46:57 +0000 | [diff] [blame] | 8 | fn vertex_main() -> @builtin(position) vec4<f32> { |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 9 | textureLoad_a9a9f5(); |
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 | |
dan sinclair | b29892b | 2022-06-07 13:55:34 +0000 | [diff] [blame] | 13 | @fragment |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 14 | fn fragment_main() { |
| 15 | textureLoad_a9a9f5(); |
| 16 | } |
| 17 | |
dan sinclair | b29892b | 2022-06-07 13:55:34 +0000 | [diff] [blame] | 18 | @compute @workgroup_size(1) |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 19 | fn compute_main() { |
| 20 | textureLoad_a9a9f5(); |
| 21 | } |