Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / tests / sksl / intrinsics / Ldexp.metal
1 #include <metal_stdlib>
2 #include <simd/simd.h>
3 using namespace metal;
4 struct Uniforms {
5     float a;
6 };
7 struct Inputs {
8 };
9 struct Outputs {
10     half4 sk_FragColor [[color(0)]];
11 };
12 struct Globals {
13     int b;
14 };
15 fragment Outputs fragmentMain(Inputs _in [[stage_in]], constant Uniforms& _uniforms [[buffer(0)]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) {
16     Globals _globals{{}};
17     (void)_globals;
18     Outputs _out;
19     (void)_out;
20     _out.sk_FragColor.x = half(ldexp(_uniforms.a, _globals.b));
21     return _out;
22 }