dawn-cmake/test/ptr_ref/load/param/ptr.spvasm.expected.msl
James Price cbe816f93d writer/msl: Generate address spaces for pointers
Add more E2E tests to cover pointers with different storage classes.

Fixed: tint:815
Change-Id: I224a794cdf60648ce71dc9a0922d489542995be1
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/51404
Auto-Submit: James Price <jrprice@google.com>
Commit-Queue: Ben Clayton <bclayton@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@chromium.org>
2021-05-19 10:38:18 +00:00

17 lines
272 B
Plaintext

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