mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 19:31:25 +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>
14 lines
177 B
Plaintext
14 lines
177 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
struct S {
|
|
int i;
|
|
};
|
|
|
|
kernel void tint_symbol() {
|
|
thread S tint_symbol_1 = {};
|
|
int const i = tint_symbol_1.i;
|
|
return;
|
|
}
|
|
|