d6aa911156
Since we can't know which variable was modified, we therefore have to conservatively assume that any variable might have been modified.
21 lines
287 B
Plaintext
21 lines
287 B
Plaintext
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
|
|
|
struct foo
|
|
{
|
|
int a;
|
|
};
|
|
|
|
struct bar
|
|
{
|
|
int b;
|
|
};
|
|
|
|
kernel void main0(device foo& x [[buffer(0)]], device bar& y [[buffer(1)]], uint3 gl_GlobalInvocationID [[thread_position_in_grid]])
|
|
{
|
|
y.b = x.a + x.a;
|
|
}
|
|
|