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

Optional fragment shader #228

Merged
merged 6 commits into from
Dec 20, 2024

Conversation

EriKWDev
Copy link
Contributor

@EriKWDev EriKWDev commented Dec 19, 2024

Closes #226

This changes the declaration of the fragment function from being mandatory to instead be optional.

Vulkan and Metal have been tested in the sense that bunnymark with fragment shader set to None compiles and runs. Upon inspection of vulkan run of the bunnymark example without fragment specified, I observed that the vertex shader is executed correctly but renderdoc states there is no fragment shader stage as expected.

@EriKWDev
Copy link
Contributor Author

EriKWDev commented Dec 19, 2024

I can still not get the gles backend to run so I just assume in this PR it is fine to not create the fragment shader in the pipeline. This is what wgpu-hal seems to do

Copy link
Owner

@kvark kvark left a comment

Choose a reason for hiding this comment

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

Thank you!

@kvark kvark merged commit fd44ad4 into kvark:main Dec 20, 2024
5 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.

Ability to describe render-pipelines without a fragment shader
2 participants