mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 19:31:25 +00:00
Also add missing msl macros to the renamer. Bug: tint:951 Change-Id: I543e6eae885c979596ca63f9d6c7378dd5425e8a Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56941 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@chromium.org> Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: James Price <jrprice@google.com>
24 lines
600 B
Plaintext
24 lines
600 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
struct main_out {
|
|
float4 out_var_SV_TARGET_1;
|
|
};
|
|
struct tint_symbol_1 {
|
|
float4 out_var_SV_TARGET_1 [[color(0)]];
|
|
};
|
|
|
|
void main_1(thread float4* const tint_symbol_4) {
|
|
*(tint_symbol_4) = float4(INFINITY, INFINITY, INFINITY, INFINITY);
|
|
return;
|
|
}
|
|
|
|
fragment tint_symbol_1 tint_symbol() {
|
|
thread float4 tint_symbol_5 = 0.0f;
|
|
main_1(&(tint_symbol_5));
|
|
main_out const tint_symbol_2 = {.out_var_SV_TARGET_1=tint_symbol_5};
|
|
tint_symbol_1 const tint_symbol_3 = {.out_var_SV_TARGET_1=tint_symbol_2.out_var_SV_TARGET_1};
|
|
return tint_symbol_3;
|
|
}
|
|
|