mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-05 11:45:54 +00:00
Recent changes to DecomposeMemoryAccess meant we lost the dependency information between the user of a module-scope variable of the storage / uniform address space and the variable. Add dependency information to ast::InternalAttribute so this can be tracked. This change also means that symbol renaming after the DecomposeMemoryAccess should work. Fixed: tint:1860 Change-Id: Icfa2925f95c2ac50702522df514cd11bde727546 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122660 Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
23 lines
552 B
Plaintext
23 lines
552 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
struct tint_symbol_1 {
|
|
float4 value [[position]];
|
|
};
|
|
|
|
struct DeclaredAfterUsage {
|
|
/* 0x0000 */ float f;
|
|
};
|
|
|
|
float4 tint_symbol_inner(const constant DeclaredAfterUsage* const tint_symbol_2) {
|
|
return float4((*(tint_symbol_2)).f);
|
|
}
|
|
|
|
vertex tint_symbol_1 tint_symbol(const constant DeclaredAfterUsage* tint_symbol_3 [[buffer(0)]]) {
|
|
float4 const inner_result = tint_symbol_inner(tint_symbol_3);
|
|
tint_symbol_1 wrapper_result = {};
|
|
wrapper_result.value = inner_result;
|
|
return wrapper_result;
|
|
}
|
|
|