Shader effects: pass bindings, parameter blocks and state fields #250
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!250
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/250/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-25 06:14 UTC · original
holdmysocks:claude/shader-effect-fields→master· +366 −24 · 2 files · 1 commits · merged 2026-11-25 06:36 UTCMore of the shader effect record is read, and
shader-bindingsprints it.What is read now
u16at 16 of a pass record, added to the address of the record's byte 4, is the address of the pass's entry in theu32list after the passes. An entry is four hash lists (resources read, resources written, a list that is always empty, constant buffers) and an optional extra word.ff= none).u64 id,u16 n, 14 bytes,nentries of name hash, two kind bytes and a slot. Shared blocks of a database are read the same way.u16of the header is a count of 8-byte entries after the records. A resource can point at one of them; a member can point at its default value.Checked on one install (932 effects, 28,798 passes)
u16lands on an entry that readsUnit tests: a synthetic effect with two passes and their entries, a stored block, the four state readers, default values and table entries.
cargo test -p sixng-core shaderfxpasses (3 tests).Not decoded