mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-08 22:26:06 +00:00
This reverts commit efceb835366b54fac70ea8dce778881601d4eae4. Reason for revert: Possibly broke tint -> dawn roll (again) Original change's description: > writer/hlsl: Special case negative zero > > Fixed: tint:960 > Change-Id: I04de8713fe299607f32fd93288a22b75a9dff381 > Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/58760 > Reviewed-by: Ben Clayton <bclayton@chromium.org> > Reviewed-by: James Price <jrprice@google.com> > Commit-Queue: Ben Clayton <bclayton@google.com> > Kokoro: Kokoro <noreply+kokoro@google.com> TBR=bclayton@google.com,jrprice@google.com,bclayton@chromium.org,noreply+kokoro@google.com,tint-scoped@luci-project-accounts.iam.gserviceaccount.com Change-Id: Ic3042dabbd5a399851185714a6dd5e33ba8a5fc6 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/59023 Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Ben Clayton <bclayton@google.com>
24 lines
604 B
Plaintext
24 lines
604 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;
|
|
}
|
|
|