Ben Clayton | 97668c8 | 2021-07-27 08:17:29 +0000 | [diff] [blame] | 1 | #include <metal_stdlib> |
2 | |||||
3 | using namespace metal; | ||||
4 | struct SSBO { | ||||
5 | /* 0x0000 */ float2x2 m; | ||||
6 | }; | ||||
7 | |||||
James Price | e548db9 | 2021-10-28 15:00:39 +0000 | [diff] [blame] | 8 | kernel void f(device SSBO* tint_symbol [[buffer(0)]]) { |
9 | float2x2 const v = (*(tint_symbol)).m; | ||||
10 | (*(tint_symbol)).m = v; | ||||
Ben Clayton | 97668c8 | 2021-07-27 08:17:29 +0000 | [diff] [blame] | 11 | return; |
12 | } | ||||
13 |