mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
29 lines
518 B
C
29 lines
518 B
C
#include <metal_stdlib>
|
|
|
|
#pragma once
|
|
|
|
half getLuma(half3 color);
|
|
|
|
half3 rgbToHsv(half3 c);
|
|
|
|
half3 hsvToRgb(half3 c);
|
|
|
|
half3 rgbToHsl(half3 color);
|
|
|
|
half hueToRgb(half f1, half f2, half hue);
|
|
|
|
half3 hslToRgb(half3 hsl);
|
|
|
|
half3 rgbToYuv(half3 inP);
|
|
|
|
half3 yuvToRgb(half3 inP);
|
|
|
|
half easeInOutSigmoid(half value, half strength);
|
|
|
|
half powerCurve(half inVal, half mag);
|
|
|
|
float pnoise3D(float3 p);
|
|
float2 coordRot(float2 tc, float angle);
|
|
|
|
float sdfRoundedRectangle(float2 uv, float2 position, float2 size, float radius);
|