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

Modern GL best practices layer #4

Open
JuanDiegoMontoya opened this issue Jul 8, 2022 · 0 comments
Open

Modern GL best practices layer #4

JuanDiegoMontoya opened this issue Jul 8, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@JuanDiegoMontoya
Copy link

JuanDiegoMontoya commented Jul 8, 2022

A way to "soft deprecate" old-but-not-ancient GL functionality. I'm open to suggestions as well.

  • Warn if non-DSA functions are used
  • Warn if non-storage (TextureStorage, BufferStorage) functions are used
  • Warn if VertexAttribPointer is used (prefer VertexAttribFormat, VertexArrayVertexBuffer, etc.)
  • Warn if ActiveTexture is used (prefer BindTextureUnit)

Debatably:

  • Warn if resource binding indices are set via uniform rather than setting it in the shader with binding = #
  • Warn if uniforms are used at all (prefer uniform buffers)
  • When drawing, warn if a texture object is bound to a texture binding, but no sampler object is (avoid using the built-in texture sampler state)

This is somewhat related to #1.

@JuanDiegoMontoya JuanDiegoMontoya added the enhancement New feature or request label Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant