From b1c53a93462f2e5f20d37f43c5995966dca7c4be Mon Sep 17 00:00:00 2001 From: Taylor Holliday Date: Wed, 29 May 2024 12:52:42 -0700 Subject: [PATCH] add versions of mix --- Sources/vger/metal_compat.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Sources/vger/metal_compat.h b/Sources/vger/metal_compat.h index b61fc08..e5898f9 100644 --- a/Sources/vger/metal_compat.h +++ b/Sources/vger/metal_compat.h @@ -41,4 +41,12 @@ inline float2 mix(float2 a, float2 b, float t) { return (1-t)*a + t*b; } +inline float3 mix(float3 a, float3 b, float t) { + return (1-t)*a + t*b; +} + +inline float4 mix(float4 a, float4 b, float t) { + return (1-t)*a + t*b; +} + #endif