mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-01 20:21:23 +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>
21 lines
519 B
HLSL
21 lines
519 B
HLSL
static float4 out_var_SV_TARGET = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
|
|
void main_1() {
|
|
out_var_SV_TARGET = float4(asfloat(0xff800000u), asfloat(0xff800000u), asfloat(0xff800000u), asfloat(0xff800000u));
|
|
return;
|
|
}
|
|
|
|
struct main_out {
|
|
float4 out_var_SV_TARGET_1;
|
|
};
|
|
struct tint_symbol {
|
|
float4 out_var_SV_TARGET_1 : SV_Target0;
|
|
};
|
|
|
|
tint_symbol main() {
|
|
main_1();
|
|
const main_out tint_symbol_1 = {out_var_SV_TARGET};
|
|
const tint_symbol tint_symbol_2 = {tint_symbol_1.out_var_SV_TARGET_1};
|
|
return tint_symbol_2;
|
|
}
|