Skip to content

Commit

Permalink
remove old debugging aid
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-m committed Mar 31, 2024
1 parent a4bb117 commit 0787c6f
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions pkg/pmatch/vk.comp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0787c6f

Please sign in to comment.