shader: add SM 6.6 DXIL RayQuery emitter and RTAS SRV support (#339) #352
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-02T15:16:53Z.
Implements 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):
Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-02T16:06:05Z.
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).