GraphicsProgramming / GraphicsProgramming/gl-validation-layer

Modern GL best practices layer

オープン
#4 コメント 0 件 リアクション 1 件 担当者 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 を短くまとめたダイジェスト。