Skip to content
Back

Shokado: a dependency-free C library that unifies GPU shader compilation

The Shokado repository presents GPU shader compilation infrastructure in a single dependency-free C library, with an IR, optimizer, generators for SPIR-V, DXIL, AIR and GLSL, verifier, linker and VM.

WRP Consultoria e Informática · Updatedtoday

Source: Shokado: biblioteca C sem dependências para compilação de shaders de GPU (shokado.org). Text prepared with AI from this source.

What happened and what to do

The Shokado repository describes GPU compilation infrastructure distributed as a single C library with no external dependencies. According to its description, it includes an intermediate representation (IR), an optimizer, code generators for SPIR-V, DXIL, AIR and GLSL, plus a verifier, a linker and a virtual machine. The project offers a portable backend that generates several shader formats from a single IR.

For a company that maintains graphics, visualization or GPU computing applications, a component like this can reduce the need to keep separate shader pipelines per platform or API. In practice, the work involves mapping existing shaders to a common intermediate representation, validating the output on the required targets and integrating the compiler into the build and test pipeline, so that each format does not require duplicated code. Before any adoption, a fit assessment should check the license, the project's state and coverage of the formats needed.

How the consultancy can help

WRP can diagnose how shader compilation is maintained today, identify duplication across the SPIR-V, DXIL, AIR and GLSL targets, and propose an architecture with a shared IR, automated output validation and integration into the build pipeline, with scoped deployment and operation.

Next step

If your team maintains shaders for several graphics platforms, send a short description of your case, your targets and your current pipeline, and receive a scoped proposal for diagnosis and implementation.

AI, software & infrastructure radar · WRP

Need to put this architecture into production with governance and SLA?

WRP delivers evidence-backed technical audits, fixed-scope remediation, and managed operations across AI, web/email compliance, and official data pipelines.