68f0257f26
This makes it easier to debug codegen for these shaders.
21 lines
361 B
Plaintext
21 lines
361 B
Plaintext
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
|
|
|
struct SSBOScalar
|
|
{
|
|
float4 a[16];
|
|
float4 b[16];
|
|
float4 c[16];
|
|
};
|
|
|
|
kernel void main0(device SSBOScalar& _6 [[buffer(0)]])
|
|
{
|
|
float2 _22 = _6.b[10].xy;
|
|
float _26 = _6.c[10].x;
|
|
(device float2&)_6.b[10] = float2(10.0, 11.0);
|
|
(device float2&)_6.a[10] = _22 * _26;
|
|
}
|
|
|