GraphicsProgramming / GraphicsProgramming/gl-validation-layer

Modern GL best practices layer

未關閉
#4 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
C
星號
7
分支
0
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。