James Price | b1a0544 | 2024-02-06 21:39:09 +0000 | [diff] [blame] | 1 | #include <metal_stdlib> |
| 2 | |
| 3 | using namespace metal; |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 4 | float3 subgroupBroadcast_912ff5() { |
James Price | b1a0544 | 2024-02-06 21:39:09 +0000 | [diff] [blame] | 5 | float3 arg_0 = float3(1.0f); |
| 6 | float3 res = simd_broadcast(arg_0,ushort(1u)); |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 7 | return res; |
James Price | b1a0544 | 2024-02-06 21:39:09 +0000 | [diff] [blame] | 8 | } |
| 9 | |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 10 | kernel void compute_main(device packed_float3* tint_symbol [[buffer(0)]]) { |
| 11 | *(tint_symbol) = packed_float3(subgroupBroadcast_912ff5()); |
James Price | b1a0544 | 2024-02-06 21:39:09 +0000 | [diff] [blame] | 12 | return; |
| 13 | } |
| 14 | |