GraphicsProgramming / GraphicsProgramming/gl-validation-layer

Modern GL best practices layer

Open
#4 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
C
Stars
7
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.