From 0787c6f7355ceb46c8c6271559988c178ea28892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20M=C3=BCller?= Date: Wed, 20 Dec 2023 21:56:44 +0100 Subject: [PATCH] remove old debugging aid --- pkg/pmatch/vk.comp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/pkg/pmatch/vk.comp b/pkg/pmatch/vk.comp index 54a5ed64..610e3f8a 100644 --- a/pkg/pmatch/vk.comp +++ b/pkg/pmatch/vk.comp @@ -36,24 +36,6 @@ uvec4 rgb_le(uint px) { return ret; } -uvec4 colscale(float val) { - uvec4 ret = {0, 0, 0, 255}; - - if (val < 0.8) { - ret.r = uint(val / 0.8 * 255); - } else if (val < 0.9) { - ret.b = uint((val - 0.8) / 0.1 * 255); - } else { - ret.g = uint((val - 0.9) / 0.1 * 255); - } - - return ret; -} - -uint pixel_le(uvec4 rgb) { - return rgb.r | (rgb.g << 0x08) | (rgb.b << 0x10) | (rgb.a << 0x18); -} - void main() { uint x = gl_GlobalInvocationID.x; uint y = gl_GlobalInvocationID.y;