Skip to content

[msl-out] Switch to intersection queries - #9304

Merged
cwfitzgerald merged 20 commits into
gfx-rs:trunkfrom
Vecvec:change-macos-rq
Apr 15, 2026
Merged

[msl-out] Switch to intersection queries#9304
cwfitzgerald merged 20 commits into
gfx-rs:trunkfrom
Vecvec:change-macos-rq

Conversation

@Vecvec

@Vecvec Vecvec commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

Connections

Description
Re-writes the msl naga backend to use intersection queries instead of the intersector. This provides the notable benefit of supporting AABBs and non-opaque triangles. It also behave more like ray queries. The intersector matches ray tracing pipelines more than ray queries (though w/ significant differences).

Testing
Ran existing tests with shader validation disabled (which seems to help #9100 ).

Squash or Rebase?
Squash: this was originally started to see if it helped #9100, so I was initially ignoring CI failures .

Checklist

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

@dylanblokhuis

Copy link
Copy Markdown
Contributor

Just checked if the ray_aabb_compute example from #9290 still works and it does!

@cwfitzgerald cwfitzgerald left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment thread naga/src/back/msl/ray.rs
return Err(Error::UnsupportedRayTracing);
}

// TODO: check for misuse.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these TODOs get issues?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reworked #6761 for this.

@cwfitzgerald
cwfitzgerald merged commit f6d9a1d into gfx-rs:trunk Apr 15, 2026
59 checks passed
@cwfitzgerald
cwfitzgerald deleted the change-macos-rq branch April 15, 2026 22:07
slyedoc pushed a commit to slyedoc/wgpu that referenced this pull request May 28, 2026
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.

3 participants