20 lines
291 B
Plaintext
20 lines
291 B
Plaintext
|
#include <metal_stdlib>
|
||
|
#include <simd/simd.h>
|
||
|
|
||
|
using namespace metal;
|
||
|
|
||
|
struct SSBO
|
||
|
{
|
||
|
float3x3 m0;
|
||
|
float3x3 m1;
|
||
|
float3 v0;
|
||
|
float3 v1;
|
||
|
};
|
||
|
|
||
|
kernel void main0(device SSBO& _11 [[buffer(0)]])
|
||
|
{
|
||
|
_11.v0 = _11.v1 * (_11.m1 * _11.m0);
|
||
|
_11.v0 = (_11.v1 * _11.m1) * _11.m0;
|
||
|
}
|
||
|
|