Skip to content

Conversation

@Vecvec
Copy link
Contributor

@Vecvec Vecvec commented Dec 19, 2025

Connections
DirectX side of #6761
Does similar things to #8390 but for hlsl instead

Description
Passes a tracker around with the ray query to track its initialization status. This does similar things to the spir-v back-end with these notable exceptions:

  1. Most functions are inline.
    • I was unsure how inouts behave with ray queries, and writing inline is much easier in HLSL. Most of the functions are fairly small, and aren't used very frequently.
  2. No tmax tracker.

Testing
Same tests as #8390

Squash or Rebase?
Squash

Checklist

  • Run cargo fmt.
  • Run cargo clippy --tests. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo xtask test to run tests.
  • If this contains user-facing changes, add a CHANGELOG.md entry.

@Vecvec Vecvec force-pushed the hlsl-safe-ray-queries branch from 809fb1f to c91db6c Compare December 19, 2025 19:19
@Vecvec Vecvec changed the title Hlsl safe ray queries [HLSL] Make ray queries safer. Dec 19, 2025
@Vecvec Vecvec force-pushed the hlsl-safe-ray-queries branch from 07e4f82 to e7afd4e Compare December 23, 2025 06:21
@Vecvec Vecvec force-pushed the hlsl-safe-ray-queries branch from e7afd4e to 54630f3 Compare December 23, 2025 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant