Files
harfbuzz/util/gpu/demo-fragment.glsl
T
Behdad EsfahbodandClaude Opus 4.6 03c2688436 [gpu] Add GPU demo app in util/gpu
Port the glyphy-demo to use the hb-gpu API.  Builds as util/hb-gpu
and requires GLEW, GLFW3, and OpenGL 3.3.  Includes default text
and embedded font for quick testing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 18:30:13 -06:00

12 lines
190 B
GLSL

in vec2 v_texcoord;
flat in uint v_glyphLoc;
out vec4 fragColor;
void main ()
{
float coverage = hb_gpu_render (v_texcoord, v_glyphLoc);
fragColor = vec4 (0.0, 0.0, 0.0, coverage);
}