mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-15 19:13:31 +00:00
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>
16 lines
211 B
Plaintext
16 lines
211 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
void func(int value, thread int* pointer) {
|
|
*(pointer) = value;
|
|
return;
|
|
}
|
|
|
|
kernel void tint_symbol() {
|
|
int i = 0;
|
|
i = 123;
|
|
func(123, &(i));
|
|
return;
|
|
}
|
|
|