From cd63ce61470bf5c0a2a54f576dae3c3b68b4fb45 Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Sat, 23 Sep 2023 05:41:38 -0400 Subject: Gpu/display: Unify fns and args; start on frag args Preparing to do more with vertex shaders (compute quads and pass to frag) to reduce CPU work and speed up Pi 4. --- virtual-programs/display.folk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'virtual-programs') diff --git a/virtual-programs/display.folk b/virtual-programs/display.folk index dc0fb2ea..211bfa0a 100644 --- a/virtual-programs/display.folk +++ b/virtual-programs/display.folk @@ -115,7 +115,7 @@ On process { vec2 a vec2 b vec2 c vec2 d} { vec2 vertices[4] = vec2[4](a, b, d, c); return vertices[gl_VertexIndex]; - } {invBilinear glyphMsd median} { + } {fn invBilinear fn glyphMsd fn median} { vec2 glyphUv = invBilinear(gl_FragCoord.xy, a, b, c, d); if( max( abs(glyphUv.x-0.5), abs(glyphUv.y-0.5))>=0.5 ) { return vec4(0, 0, 0, 0); -- cgit v1.2.3