-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Merged by Bors] - add support for .comp glsl shaders #6084
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as precedent, glslang knows file extensions frag
, vert
, comp
and stuff that wgpu doesn't expose: https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/
@IceSentry this seems to be minimal support yet complete for the extension |
It was in draft mode because I haven't actually tested it with anything so I don't know if it works. As soon as I can confirm it works I'll take it out of draft mode. |
I tested a really simple compute shader using .comp and it worked as expected, so this is ready. |
bors r+ |
# Objective - Support `.comp` extension for glsl compute shaders ## Solution - Add `.comp` to the shader asset loader
Pull request successfully merged into main. Build succeeded: |
# Objective - Support `.comp` extension for glsl compute shaders ## Solution - Add `.comp` to the shader asset loader
# Objective - Support `.comp` extension for glsl compute shaders ## Solution - Add `.comp` to the shader asset loader
# Objective - Support `.comp` extension for glsl compute shaders ## Solution - Add `.comp` to the shader asset loader
Objective
.comp
extension for glsl compute shadersSolution
.comp
to the shader asset loader