f49c296d4a
Change-Id: I2c958b7aca972b7eec07e10d6c8af95fa53e761a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/342117 Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
19 lines
524 B
Metal
19 lines
524 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 _outputStruct;
|
|
thread Outputs* _out = &_outputStruct;
|
|
int exp1;
|
|
float a = frexp(0.5, exp1);
|
|
_out->sk_FragColor = float4(float(exp1));
|
|
int3 exp3;
|
|
_out->sk_FragColor.xyz = frexp(float3(3.5), exp3);
|
|
return *_out;
|
|
}
|