f64e4075f2
Change-Id: I7af94d89d349b67b2c070179324fcad7b62e0d1e Bug: skia:11071 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/342758 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
17 lines
424 B
Metal
17 lines
424 B
Metal
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
using namespace metal;
|
|
struct Inputs {
|
|
int a;
|
|
};
|
|
struct Outputs {
|
|
float4 sk_FragColor [[color(0)]];
|
|
};
|
|
|
|
fragment Outputs fragmentMain(Inputs _in [[stage_in]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) {
|
|
Outputs _outputStruct;
|
|
thread Outputs* _out = &_outputStruct;
|
|
_out->sk_FragColor.x = as_type<float>(_in.a);
|
|
return *_out;
|
|
}
|