msl: Automatically remap binding numbers in exe

Remap all resources into a flat namespace, to allow tests to pass when
multiple resources use the same binding number.

Fixed: tint:959
Change-Id: I58ed07c789e1ea90fc370ceba73b9d8292902549
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/61261
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: James Price <jrprice@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
James Price
2021-08-12 19:47:20 +00:00
committed by Tint LUCI CQ
parent 080fdf2ac0
commit 8094553c8a
365 changed files with 1249 additions and 496 deletions

View File

@@ -98,7 +98,7 @@ main_out tint_symbol_inner(constant buf1& x_6, constant buf0& x_9, thread float4
return tint_symbol_3;
}
fragment tint_symbol_1 tint_symbol(constant buf1& x_6 [[buffer(1)]], constant buf0& x_9 [[buffer(0)]]) {
fragment tint_symbol_1 tint_symbol(constant buf1& x_6 [[buffer(0)]], constant buf0& x_9 [[buffer(1)]]) {
thread float4 tint_symbol_6 = 0.0f;
main_out const inner_result = tint_symbol_inner(x_6, x_9, &(tint_symbol_6));
tint_symbol_1 wrapper_result = {};

View File

@@ -98,7 +98,7 @@ main_out tint_symbol_inner(constant buf1& x_6, constant buf0& x_9, thread float4
return tint_symbol_3;
}
fragment tint_symbol_1 tint_symbol(constant buf1& x_6 [[buffer(1)]], constant buf0& x_9 [[buffer(0)]]) {
fragment tint_symbol_1 tint_symbol(constant buf1& x_6 [[buffer(0)]], constant buf0& x_9 [[buffer(1)]]) {
thread float4 tint_symbol_6 = 0.0f;
main_out const inner_result = tint_symbol_inner(x_6, x_9, &(tint_symbol_6));
tint_symbol_1 wrapper_result = {};