mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 22:11:04 +01:00
Replace the two separate getters hb_gpu_shader_fragment_source (lang) hb_gpu_shader_vertex_source (lang) with a single hb_gpu_draw_shader_source (stage, lang) where stage is the new hb_gpu_shader_stage_t enum (VERTEX or FRAGMENT). Parameter order is stage-first because "the vertex shader in GLSL" reads more naturally than the reverse, and stage is the primary axis (it determines which shader object the source is compiled into). The `_draw_` in the new name makes room for the incoming hb_gpu_paint_shader_source() once the COLRv1 encoder lands — that family will have its own (likely different) shader sources per stage and language. Updated the four in-tree callers: test/api/test-gpu.cc, and the GPU demos under util/gpu/. ABI break on a 14.0-only API; the gpu library is still young enough that this is acceptable. Marked new API with XSince: REPLACEME. Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>