f79c1e2fed
- Fixes issue with clip_distance flattening in MSL where member to flatten from would come from to_member_name, where it should have used the builtin name directly. This member name was modified by this patch and broke clip distance test shaders. - Some cleanups with ir.meta, use ir.find_meta instead to not create unnecessary hashmap nodes.
30 lines
326 B
Plaintext
30 lines
326 B
Plaintext
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
|
|
|
struct Foo
|
|
{
|
|
float _abs;
|
|
};
|
|
|
|
struct Foo_1
|
|
{
|
|
float _abs;
|
|
};
|
|
|
|
struct SSBO
|
|
{
|
|
Foo_1 foo;
|
|
Foo_1 foo2;
|
|
};
|
|
|
|
kernel void main0(device SSBO& _7 [[buffer(0)]])
|
|
{
|
|
Foo f;
|
|
f._abs = _7.foo._abs;
|
|
int _abs = 10;
|
|
_7.foo2._abs = f._abs;
|
|
}
|
|
|