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

Coercible programs, shaders, etc. #19

Open
ekmett opened this issue Jun 8, 2019 · 0 comments
Open

Coercible programs, shaders, etc. #19

ekmett opened this issue Jun 8, 2019 · 0 comments

Comments

@ekmett
Copy link
Owner

ekmett commented Jun 8, 2019

Right now the pattern synonyms yield super liberal types and the combinators take very specific ones that match OpenGL.

This is somewhat unfortunate in that there are many fields for which the thing we pass is usually newtyped in user code (e.g. Program, Shader, etc.)

We could/should switch some or all of the fields to allowing anything Coercible to the appropriate type.

I'm inclined to look for ones that are just things like program, etc where no GL_FOO args are passed, and generalize just those to avoid type errors.

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

No branches or pull requests

1 participant