mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +00:00
msl: Handle buffer variables in transform
This removes a lot of awkward logic from the MSL writer, and means that we now handle all module-scope variables with the same transform. Change-Id: I782e36a4b88dafbc3f8364f7caa7f95c6ae3f5f1 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/67643 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
@@ -39,19 +39,19 @@ struct S {
|
||||
/* 0x0090 */ tint_array_wrapper l;
|
||||
};
|
||||
|
||||
kernel void tint_symbol(constant S& s [[buffer(0)]]) {
|
||||
int3 const a = s.a;
|
||||
int const b = s.b;
|
||||
uint3 const c = s.c;
|
||||
uint const d = s.d;
|
||||
float3 const e = s.e;
|
||||
float const f = s.f;
|
||||
int2 const g = s.g;
|
||||
int2 const h = s.h;
|
||||
float2x3 const i = s.i;
|
||||
float3x2 const j = s.j;
|
||||
Inner const k = s.k;
|
||||
tint_array_wrapper const l = s.l;
|
||||
kernel void tint_symbol(const constant S* tint_symbol_1 [[buffer(0)]]) {
|
||||
int3 const a = (*(tint_symbol_1)).a;
|
||||
int const b = (*(tint_symbol_1)).b;
|
||||
uint3 const c = (*(tint_symbol_1)).c;
|
||||
uint const d = (*(tint_symbol_1)).d;
|
||||
float3 const e = (*(tint_symbol_1)).e;
|
||||
float const f = (*(tint_symbol_1)).f;
|
||||
int2 const g = (*(tint_symbol_1)).g;
|
||||
int2 const h = (*(tint_symbol_1)).h;
|
||||
float2x3 const i = (*(tint_symbol_1)).i;
|
||||
float3x2 const j = (*(tint_symbol_1)).j;
|
||||
Inner const k = (*(tint_symbol_1)).k;
|
||||
tint_array_wrapper const l = (*(tint_symbol_1)).l;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user