Shaders: declared resources and constants of every program and effect (shader-bindings) #147
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!147
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/147/head"
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?
@holdmysocks on GitHub · 2026-11-24 13:02 UTC · original
holdmysocks:claude/shader-bindings→master· +466 −0 · 4 files · 1 commits · merged 2026-11-24 13:15 UTCWhat
A reader for the reflection tables in the uncompressed part of
shaders.rpf, and a command to print them:sixng shader-bindings [EFFECT_REGEX] [--programs]. The layout was worked out from the data; the code is our own and decodes no shader code.SpecTexture) and the material parameter (speculartex).Checked on the game data
standard,weapon, a compute program).standardhasdiffusetex,speculartex2,tintpalettetex, an array,speculartex,bumptexin slots 0 to 5.cargo test -p sixng-core: 153 passed (one new, on a synthetic file).What this answers for SIX-95, and what it does not
Not decoded
kind_xx; member types other than float vectors and 4x4 matrices astype_xx. The meaning of the scope flags 0x40 and 0x02 is not pinned.