SaaSHub helps you find the best software and product alternatives Learn more →
Top 20 C++ Hlsl Projects
-
3d-game-shaders-for-beginners
🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
-
-
DirectXShaderCompiler
This repo hosts the source for the DirectX Shader Compiler which is based on LLVM/Clang.
Project mention: We Built the First Pure Go DXIL Generator — Because Optimizing the Wrong Path Wasn't Enough | dev.to | 2026-04-05We spent weeks studying the DXIL format specifically. Reading the DXIL spec, the LLVM 3.7 bitcode reference, Mesa's implementation, Microsoft's DXC headers, the validator hash proposal. We wrote a detailed architecture document comparing four implementation options. We mapped every dx.op opcode we'd need for vertex and fragment shaders. We designed the package structure, the phased rollout plan, the testing strategy.
-
glslang
Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator.
-
-
-
Project mention: Shaders: How to draw high fidelity graphics with just x and y coordinates | news.ycombinator.com | 2025-11-23
There's also bonzomatic which the demo scene uses for shader programming live coding competitions:
https://github.com/Gargaj/Bonzomatic
-
-
MethaneKit
🎲 Modern 3D graphics made simple with C++20 cross-platform framework and rendering abstraction API on top of DirectX 12, Vulkan & Metal
-
-
GPUPrefixSums
A nearly complete collection of prefix sum algorithms implemented in CUDA, D3D12, Unity and WGPU. Theoretically portable to all wave/warp/subgroup sizes.
Lol do you think "PTX programming" is some kind of secret source of perf? It's just inline asm. Sometimes it's necessary but most of the time "CUDA is all you need":
https://github.com/b0nes164/GPUPrefixSums
-
-
Render Engine Infrastructure (REI)
REI is a cross-platform rendering framework and a comprehensive graphics API. Adaptable to various platforms, including PC, consoles, and mobile. It simplifies porting, especially for games developed on custom or proprietary engines. Functions as a cross-platform API as well as a helper library for platform-specific API. (by Room-8-Group-LTD)
-
-
PBR-renderer
physically based renderer written in DX12 with image-based lighting, classic deffered and tiled lighting approaches
-
-
-
C++ Hlsl discussion
C++ Hlsl related posts
-
Shaders: How to draw high fidelity graphics with just x and y coordinates
-
Prefix sum: 20 GB/s (2.6x baseline)
-
Hlslpp: Math library using HLSL syntax with multiplatform SIMD support
-
Shadertoys Ported to Rust GPU
-
C++26: A Placeholder with No Name
-
Khronos Group adopts the Slang shading language
-
The Slang Shading Language and Compiler
-
A note from our sponsor - SaaSHub
www.saashub.com | 21 Jul 2026
Index
What are some of the best open-source Hlsl projects in C++? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | 3d-game-shaders-for-beginners | 19,705 |
| 2 | slang | 5,429 |
| 3 | reshade | 5,296 |
| 4 | SHADERed | 4,764 |
| 5 | DirectXShaderCompiler | 3,608 |
| 6 | glslang | 3,549 |
| 7 | shaderc | 2,165 |
| 8 | ImGuiColorTextEdit | 1,716 |
| 9 | Bonzomatic | 1,492 |
| 10 | hlslpp | 1,126 |
| 11 | MethaneKit | 967 |
| 12 | ZetaRay | 386 |
| 13 | GPUPrefixSums | 290 |
| 14 | Ghurund | 95 |
| 15 | Render Engine Infrastructure (REI) | 71 |
| 16 | YOLOv4-Tiny-in-UnityCG-HLSL | 64 |
| 17 | PBR-renderer | 37 |
| 18 | HLML | 25 |
| 19 | ShaderPiPFX | 12 |
| 20 | NFSC_CustomVT | 7 |