GraphicsProgramming / GraphicsProgramming/gl-validation-layer

Modern GL best practices layer

Aperta
#4 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
C
Stelle
7
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.