☰
Debian Codegraph
@
1.9.25+dfsg3-3
/
/
third_party
/
spirv-cross
/
reference
/
shaders-msl-no-opt
/
asm
/
packing
/
load-packed-no-forwarding-2.asm.comp
☽
☼
third_party/spirv-cross/reference/shaders-msl-no-opt/asm/packing/load-packed-no-forwarding-2.asm.comp
code
plain
raw
Apache-2.0
2012-2021, The Android Open Source Project; 2015-2021, Google LLC; 2017, Romain Guy
debian/copyright
1
#include <metal_stdlib>
2
#include <simd/simd.h>
3
4
using namespace metal;
5
6
struct SSBOScalar
7
{
8
float3 a;
9
float3x3 b;
10
float3x3 c;
11
};
12
13
kernel void main0(device SSBOScalar& _4 [[buffer(0)]])
14
{
15
float3x3 _20 = transpose(_4.b);
16
_4.b = _4.c;
17
_4.a = _20 * _4.a;
18
}
19