mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:55:52 +01:00
[PR #303] [CLOSED] make_game: extract and translate the retail executable's 10 embedded shaders (exe stage) #355
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#355
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/303
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/10036📝 Commits (1)
98eb113make_game: extract and translate the retail executable's 10 embedded shaders into shaders/exe📊 Changes
4 files changed (+480 additions, -2 deletions)
View changed files
📝
docs/embedded_shaders.md(+10 -0)📝
make_game.py(+84 -1)📝
tests/test_bvh_shaders_stage.py(+1 -1)➕
tests/test_exe_shaders_stage.py(+385 -0)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):@ItsNotRexed: an exe PR, as you asked.Rebased cleanly on current main; supersedes
#7746and#8303closed during org migration (Python half only).What
exe_shaders()step in theshadersstage, afterbvh_shaders(). It extracts the 10 DXBC containers embedded in game_scarlett_master.exe (1 VS + 9 PS) into /shaders/exe, unpacks and disassembles the FSSM programs, translates them into /shaders/spirv/exe, and writes exe/index.json plus exe_build.json (inputs, so a second run is skipped). It skips cleanly, and drops stale output, when there is no executable.Why
The retail boot has an untranslated vertex shader that is one of the executable's 10 embedded shaders. Nothing in the build produced them.
Not in this PR
The runtime change (ShaderLibrary::load reading /exe) is C++ and is not included; docs say so.
Tested
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.