Skip to content

Implement wgpuDeviceCreateShaderModuleTrusted (fixes #396)#582

Open
lisyarus wants to merge 5 commits intogfx-rs:trunkfrom
lisyarus:implement-create-shader-module-trusted
Open

Implement wgpuDeviceCreateShaderModuleTrusted (fixes #396)#582
lisyarus wants to merge 5 commits intogfx-rs:trunkfrom
lisyarus:implement-create-shader-module-trusted

Conversation

@lisyarus
Copy link
Copy Markdown
Contributor

@lisyarus lisyarus commented Apr 16, 2026

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

Description

Implemented wgpuDeviceCreateShaderModuleTrusted. It only differs from wgpuDeviceCreateShaderModule by a single runtimeChecks parameter, which takes the values of a new bit flag WGPUShaderRuntimeChecks. It isn't specified as a bitfield in wgpu, but it is a struct containing just bools, so I figured a bitmask on the native side is appropriate.

In the implementation, the two methods only differ in a single line, so I extracted a private create_shader_module function that both methods forward to.

Related Issues

This PR fixes #396

@lisyarus lisyarus force-pushed the implement-create-shader-module-trusted branch from cdbea40 to 14c4bd8 Compare April 16, 2026 14:36
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.

Expose create_shader_module_unchecked in wgpu-native?

2 participants