Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose SPIRV_SHADER_PASSTHROUGH native feature. #436

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

MineBill
Copy link
Contributor

@MineBill MineBill commented Oct 7, 2024

I needed this feature in my project, so i decided to add the bindings.

I don't write rust, so i just copied the existing code for wgpuDeviceCreateShaderModule and edited it as needed. The wiki was missing info about the generating glue code but i figure out that modifying wgpu.h was enough to generate what was needed. I tested the code on my C++ project by replacing a wgsl grid shader with glsl and didn't encounter any problems. Hopefully, i haven't forgotten anything.

MineBill added a commit to MineBill/Fussion that referenced this pull request Oct 10, 2024
@zackgomez
Copy link
Contributor

I would also use this feature once merged

@almarklein almarklein merged commit 7c87e99 into gfx-rs:trunk Oct 14, 2024
16 checks passed
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.

4 participants