shader: add SM 6.6 DXIL RayQuery emitter and RTAS SRV support (#339) #352
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!352
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-352"
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?
@Androtim on GitHub · 2026-12-02 15:16 UTC · original
Androtim:feat/hw-rt-phase3-dxil-rayquery→main· +708 −28 · 4 files · 1 commits · merged 2026-12-02 16:14 UTCImplements PR #6 (first half of Phase 3 Native SM 6.6 DXR 1.1 \RayQuery\ shader lifting for #339; unused at runtime unless enabled by the traversal lifter in PR #7):
github-bot referenced this pull request2026-12-02 15:39:31 +00:00
@Androtim on GitHub · 2026-12-02 16:06 UTC · original
Automated triage for the maintainers (not an approval).
Verdict:
merge-candidate· CI (check):passingSummary
PR #352 adds the SM 6.6 / DXR 1.1 inline
RayQueryDXIL emitter (crates/victory-shader/src/emit/rayquery.rs) andRTAccelerationStructureroot SRV support (crates/victory-shader/src/emit/shader.rs), with CI passing.Review Notes
rayquery.rs,shader.rs):rq_opopcodes (178..=212),ray_flagconstants, function signatures (allocateRayQuery,rayQuery_TraceRayInline,rayQuery_Proceed.i1,rayQuery_Abort,rayQuery_CommitNonOpaqueTriangleHit,rayQuery_StateScalar.*,rayQuery_StateVector.f32,rayQuery_StateMatrix.f32withi32row andi8col), and attributes (NoUnwindfor mutating ops,ReadOnlyfor state queries) match the DXIL 1.6 specification.Shader::root_tlas_handleemitsResourceKind::RTAccelerationStructure(16) with{i32 0, i32 4}element-type metadata inShader::finish,SLOT_TLAS_BASE..=SLOT_TLAS_MAX(230..=249) do not overlap existing reserved slots (250..=255), andflags::RAYTRACING_TIER_1_1(1 << 25) maps toSFI0bit0x10_0000.root_tlas_srvs.is_empty()andRAYTRACING_TIER_1_1 == 0, so existing emitted DXIL andPSV0/SFI0output remain unchanged.rayquery::testsis gated with#[cfg(test)]rather than#[cfg(all(test, windows))]while importingsuper::super::validator::Validator(which is#[cfg(windows)]inemit/mod.rs); fine on Windows CI, though non-Windowscargo testwould fail to resolvevalidator.abort_and_object_space_accessors_validate_with_dxil, the callback callsray_query_commit_non_opaque+ray_query_abortand then also returnstrueforhit, causingemit_candidatesto emit a secondCommitNonOpaqueTriangleHitafterAbort; harmless for DXIL encoding validation, but returningfalseon the abort branch would better mirror real usage.Verdict
merge-candidate— clean, well-tested foundational DXIL emitter with passing CI and no runtime impact on existing shaders until wired up by the traversal lifter (PR #354). (Automated triage review; not a formal maintainer approval.)Generated with Antigravity CLI (
agy).