mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-06 12:15:43 +00:00
Kindly donated by Brandon Jones and Austin Eng. Tint has been used to convert all the deprecated attributes to the new style. In doing so, comments have been stripped. These are not massively important for the benchmarking. Bindings have also been adjusted to be sequential and unique so that the MSL backend doesn't have to deal with binding remapping. Existing benchmark files that used an underscore '_' have been renamed to use a dash '-' instead, to match the new files. Change-Id: If5fb507b981f107ed570f6eedb55b232448f67aa Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/77443 Reviewed-by: Brandon Jones <bajones@google.com> Reviewed-by: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
26 lines
605 B
HLSL
26 lines
605 B
HLSL
struct Input {
|
|
float4 position;
|
|
};
|
|
struct Output {
|
|
float4 position;
|
|
};
|
|
struct tint_symbol_2 {
|
|
float4 position : TEXCOORD0;
|
|
};
|
|
struct tint_symbol_3 {
|
|
float4 position : SV_Position;
|
|
};
|
|
|
|
Output main_inner(Input tint_symbol) {
|
|
const Output tint_symbol_4 = {tint_symbol.position};
|
|
return tint_symbol_4;
|
|
}
|
|
|
|
tint_symbol_3 main(tint_symbol_2 tint_symbol_1) {
|
|
const Input tint_symbol_5 = {tint_symbol_1.position};
|
|
const Output inner_result = main_inner(tint_symbol_5);
|
|
tint_symbol_3 wrapper_result = (tint_symbol_3)0;
|
|
wrapper_result.position = inner_result.position;
|
|
return wrapper_result;
|
|
}
|