tombox-xshader: parse PSV0 hull and domain runtime info #295
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator!295
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/295/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?
@nickfmbg on GitHub · 2026-11-23 16:39 UTC · original
nickfmbg:tess-hs-ds→main· +119 −5 · 4 files · 1 commits · closed without mergingLibrary / area:
tombox-xshader(meta.rs: newTessInfo,parse_psv0_tess,GsInfo::tess). LiteralGsInfoconstructions indxil_meta.rs,tests/mesh.rsandtests/synthetic.rsgettess: None.Exports changed (exports.txt rows): None.
Source of the behaviour: the DXIL container's
PSVRuntimeInfo0/1layout in DirectXShaderCompiler (DxilPipelineStateValidation.h): theHSInfounion{InputControlPointCount, OutputControlPointCount, TessellatorDomain, TessellatorOutputPrimitive}, theDSInfounion{InputControlPointCount, OutputPositionPresent (u8), TessellatorDomain}(domain at +8 after alignment),ShaderStageat +24, andSigPatchConstOrPrimVectorsat +26.Step 1 of the tessellation plan in #294. It only adds metadata; Hull and Domain still return
stage ... not supported yet. The patch constant signature already lands inShaderExtract::prim_sig(PSG1), so it isn't added again.Validation: control point counts 1..=32, domain 1..=3 (isoline, tri, quad), hull output primitive 1..=4. Anything else, any other stage, or a runtime info shorter than 27 bytes gives
None.Tests (
meta::tests): hull and domain decoding, the domain's output-position byte, refusal of other stages and out-of-range fields, andparse_psv0_gscarryingtessfor a hull shader andNonefor a vertex shader.cargo test -p tombox-xshaderpasses (--lib,--test synthetic,--test mesh: 120 + 24 + 24 passed, run on Windows 11 / MSVC)missingwith a note🤖 Generated with Claude Code
@omonkeyz on GitHub · 2026-11-25 13:48 UTC · original
Applied on main in
b5c3e14(cherry-picked onto the current history with your authorship kept; comment lines stripped per CONTRIBUTING). Thank you.Pull request closed