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

Support compute shaders #142

Open
matthewturk opened this issue Jul 5, 2024 · 2 comments · Fixed by #153
Open

Support compute shaders #142

matthewturk opened this issue Jul 5, 2024 · 2 comments · Fixed by #153
Assignees

Comments

@matthewturk
Copy link
Member

We should support compute shaders. These will function somewhat differently, and I think that we should not duplicate too much between our existing display-focused shaders and the compute shaders.

Compute shaders should not have vertex/geometry/fragment, so we need to set up a slightly different object. We can still use a Shader I think, but we won't want to use the same setup for a ShaderProgram. We may end up not using all of Shader, either, since there we handle stuff like blending functions, which aren't relevant to this.

@matthewturk matthewturk self-assigned this Jul 5, 2024
@matthewturk
Copy link
Member Author

Another big reason to support these as special-purpose objects is that often they will not need to be computed every render call. For instance, a histogram does not need to be computed constantly.

@chrishavlin
Copy link
Contributor

oops, wrong issue was linked

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 a pull request may close this issue.

2 participants