win32 tool to generate shadercache - #1785
Draft
CedricGuillemet wants to merge 2 commits into
Draft
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new Win32 headless OpenGL/ANGLE app (ShaderCacheGenerator) to render a Babylon.js scene until shaders finish compiling, then persist the resulting ShaderCache to a file for reuse (e.g., GLES cache compatibility scenarios).
Changes:
- Introduces
ShaderCacheGeneratorexecutable that hosts a scene viaBabylon::Embedding::Runtime/View, renders frames, and saves the shader cache. - Adds build + usage documentation for the new tool.
- Wires the new app into the Apps CMake build under appropriate Win32/OpenGL + plugin/compiler feature gates.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| Apps/ShaderCacheGenerator/Source/Main.cpp | Implements the headless Win32 window + Embedding View render loop, readiness heuristic, and shader-cache persistence. |
| Apps/ShaderCacheGenerator/README.md | Documents purpose, usage, build, and “scene ready” heuristic. |
| Apps/ShaderCacheGenerator/CMakeLists.txt | Adds the new executable target, links required libraries, and copies runtime/ANGLE DLLs post-build. |
| Apps/CMakeLists.txt | Conditionally includes the ShaderCacheGenerator subdirectory for supported Win32/OpenGL configurations. |
CedricGuillemet
marked this pull request as draft
July 22, 2026 14:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I need this tool for a PoC. I'm wondering if it should be an independent tool instead (with Apple/Linux build) and NPM publishing.