Skip to content

Conversation

@kpreid
Copy link
Collaborator

@kpreid kpreid commented Dec 22, 2025

Description

  • Expand documentation of QuerySet and related items. This is intended to provide all the information necessary to make use of occlusion and timestamp queries, without needing to read example code or the WebGPU spec.
  • Explain where Device::features() and Device::limits() come from.
  • Replace docs.rs links in Features with link_to_wgpu_docs!. This way the reader will always get links to the correct wgpu version, including locally.
  • Fix link_to_wgpu_item! generating bad links containing literal "$kind".
  • Misc. Markdown fixes.

Testing
cargo doc

Squash or Rebase?
Rebase!!! This PR is a bundle of several independent but related fixes.

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • 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.

Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Looks good, some small notes to improve it further.

This clarifies that they are under user control and do not necessarily
represent hard impossibilities.
@kpreid kpreid force-pushed the docs branch 2 times, most recently from a3e7e73 to 1360d32 Compare December 23, 2025 00:11
This is intended to provide all the information necessary to make use of
occlusion and timestamp queries, without needing to read example code or
the WebGPU spec.
@cwfitzgerald cwfitzgerald merged commit 592736e into gfx-rs:trunk Dec 23, 2025
48 checks passed
@kpreid kpreid deleted the docs branch December 23, 2025 02:05
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.

2 participants