mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 19:31:25 +00:00
This fixes issues with passing constant arrays to functions. Change-Id: I6e2f1c3f64df836c0b6a55ab925cf3c2bc317733 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/51861 Auto-Submit: James Price <jrprice@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>
17 lines
278 B
Plaintext
17 lines
278 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
int func(int value, thread int* const 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;
|
|
}
|
|
|