dawn-cmake/test/tint/ptr_ref/load/param/ptr.wgsl.expected.msl

14 lines
262 B
Plaintext
Raw Permalink Normal View History

#include <metal_stdlib>
using namespace metal;
int func(int value, thread int* const pointer) {
return as_type<int>((as_type<uint>(value) + as_type<uint>(*(pointer))));
}
kernel void tint_symbol() {
int i = 123;
int const r = func(i, &(i));
return;
}