22 lines
452 B
Plaintext
22 lines
452 B
Plaintext
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
|
|
|
struct SSBO
|
|
{
|
|
float4 data;
|
|
int index;
|
|
};
|
|
|
|
kernel void main0(device SSBO& _13 [[buffer(0)]])
|
|
{
|
|
float4 _17 = _13.data;
|
|
_13.data = float4(_17.x, _17.yz + float2(10.0), _17.w);
|
|
_13.data = (_17 + _17) + _17;
|
|
_13.data = (_17.yz + float2(10.0)).xxyy;
|
|
_13.data = float4((_17.yz + float2(10.0)).y);
|
|
_13.data = float4((_17.zw + float2(10.0))[_13.index]);
|
|
}
|
|
|