mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-03 13:11:34 +00:00
When moving private and workgroup variables into the entry point, generate pointers to pass as arguments to sub-functions on demand, instead of upfront. This removes a bunch of unnecessary dereferences for accesses inside the entry point, and one function variable. Change-Id: I7d1aabdf14eae33b569b3316dfc0f9fbd288131e Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/54300 Auto-Submit: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: James Price <jrprice@google.com>
11 lines
184 B
Plaintext
11 lines
184 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
kernel void tint_symbol() {
|
|
thread int tint_symbol_1 = 0;
|
|
int const x_9 = tint_symbol_1;
|
|
int const x_11 = (x_9 + 1);
|
|
return;
|
|
}
|
|
|