mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 14:13:39 +00:00
This reverts commit 26b6edc54565e9efaa060e11ef2c4a8116bd1675. Reason for revert: Seems to be breaking Dawn's tests. Investigation required. Original change's description: > writer/hlsl: Special case negative zero > > Fixed: tint:960 > Change-Id: I060bc6b7a9ad4d21dd5cadb4b68998c7e54ebaed > Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/57142 > Kokoro: Kokoro <noreply+kokoro@google.com> > Commit-Queue: Ben Clayton <bclayton@google.com> > Auto-Submit: Ben Clayton <bclayton@google.com> > Reviewed-by: James Price <jrprice@google.com> # Not skipping CQ checks because original CL landed > 1 day ago. Change-Id: Ia0b0ec996f2ed6b1599a344c970f155c12314ea9 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/57460 Reviewed-by: Ben Clayton <bclayton@google.com> Reviewed-by: James Price <jrprice@google.com> Kokoro: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: James Price <jrprice@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;
|
|
}
|
|
|