Skip to content

Sync native features with wgpu-core#576

Open
lisyarus wants to merge 3 commits intogfx-rs:trunkfrom
lisyarus:update-native-features
Open

Sync native features with wgpu-core#576
lisyarus wants to merge 3 commits intogfx-rs:trunkfrom
lisyarus:update-native-features

Conversation

@lisyarus
Copy link
Copy Markdown
Contributor

@lisyarus lisyarus commented Apr 11, 2026

I've inspected the FeaturesWGPU in gfx-rs/wgpu against the current WGPUNativeFeatures enum, and put them mostly in sync:

  • Renamed WGPUNativeFeature_UniformBufferAndStorageTextureArrayNonUniformIndexing -> WGPUNativeFeature_StorageTextureArrayNonUniformIndexing (see Update binding_array related Capabilities wgpu#4407)
  • Removed WGPUNativeFeature_SpirvShaderPassthrough (I added a new WGPUNativeFeature_PassthroughShaders, but it is commented out, as it requires API changes)
  • Added or uncommented enum values corresponding to a bunch of missing native features exposed in wgpu

I've updated the conversion code in conv.rs (in both directions). In cases when actually using a feature would require implementing new API, I've kept the feature enum value and the conversion code commented out for future (this means that for the most part the added extensions are relevant only in shaders).

Checklist

  • cargo clippy reports no issues
  • cargo doc reports no issues
  • cargo deny issues have been fixed or added to deny.toml
  • Human-readable change descriptions added to CHANGELOG.md under the "Unreleased" heading.
    • If the change does not affect the user (or is a process change), preface the change with "Internal:"
    • Add credit to yourself for each change: Added new functionality. @githubname

@lisyarus lisyarus force-pushed the update-native-features branch from 3a31b26 to 820331b Compare April 11, 2026 20:38
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