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.
23 lines
285 B
Plaintext
23 lines
285 B
Plaintext
struct Foo
|
|
{
|
|
float _abs;
|
|
};
|
|
|
|
RWByteAddressBuffer _7 : register(u0);
|
|
|
|
void comp_main()
|
|
{
|
|
Foo _24;
|
|
_24._abs = asfloat(_7.Load(0));
|
|
Foo f;
|
|
f._abs = _24._abs;
|
|
int _abs = 10;
|
|
_7.Store(4, asuint(f._abs));
|
|
}
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void main()
|
|
{
|
|
comp_main();
|
|
}
|