443fa19832
Change-Id: I3427fbaf57787c3051db95ec5882c9292d7985cf Bug: skia:12034 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/411312 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
17 lines
393 B
Metal
17 lines
393 B
Metal
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
using namespace metal;
|
|
struct Inputs {
|
|
};
|
|
struct Outputs {
|
|
float4 sk_FragColor [[color(0)]];
|
|
};
|
|
fragment Outputs fragmentMain(Inputs _in [[stage_in]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) {
|
|
Outputs _out;
|
|
(void)_out;
|
|
int i = 1;
|
|
i * (i = 3);
|
|
_out.sk_FragColor.x = float(i);
|
|
return _out;
|
|
}
|