Report float and half-float color attachments on GL and GLES
まだ誰も着手していません。
評価
調査の方向性
Start in source/renderer/ore/gl/ore_context_gl.cpp, where ContextGL::Make() sets GL feature flags and checks extensions. Review the desktop GL and OpenGL ES branches, then build or run the renderer's available GL tests. Done when desktop GL reports float and half-float color attachments, desktop GL 4.3+ reports storage buffers when fragment shader storage blocks are supported, and GLES detects GL_EXT_color_buffer_half_float.
索引モデルが issue の本文から書いたものです。
説明
Report float and half-float color attachments on GL and GLES.
- source/renderer/ore/gl/ore_context_gl.cpp: Ore GL features: report float and half-float color attachments on desktop GL, where they are core since 3.0 and the ES-only GL_EXT_color_buffer_float is never listed; desktop GL 4.3+ also reports storageBuffers when fragment shaders can bind shader storage blocks
- source/renderer/ore/gl/ore_context_gl.cpp: Ore GL features: detect GL_EXT_color_buffer_half_float on OpenGL ES, which makes 16-bit float color attachments renderable without the full-float extension
diff --git a/source/renderer/ore/gl/ore_context_gl.cpp b/source/renderer/ore/gl/ore_context_gl.cpp
index 719846374383899a0cf1a0147898a6414b8a4b4a..90ccf9c95c1b557af44258701d75769168d666a1 100644
--- a/source/renderer/ore/gl/ore_context_gl.cpp
+++ b/source/renderer/ore/gl/ore_context_gl.cpp
@@ -341,6 +341,23 @@ std::unique_ptr<ContextGL> ContextGL::Make()
f.etc2 = true; // GLES3 mandates ETC2.
f.astc = false;
+#ifdef RIVE_DESKTOP_GL
+ f.colorBufferFloat = true;
+ f.colorBufferHalfFloat = true;
+#ifdef GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS
+ // Desktop GL 4.3+ binds shader storage buffers to graphics stages.
+ {
+ GLint major = 0, minor = 0, fragmentSSBOs = 0;
+ glGetIntegerv(GL_MAJOR_VERSION, &major);
+ glGetIntegerv(GL_MINOR_VERSION, &minor);
+ if (major > 4 || (major == 4 && minor >= 3))
+ glGetIntegerv(GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS,
+ &fragmentSSBOs);
+ f.storageBuffers = fragmentSSBOs > 0;
+ }
+#endif
+#endif
+
// Query limits.
GLint maxTexSize = 0, maxCubeSize = 0, max3DSize = 0, maxUBOSize = 0;
GLint maxDrawBuffers = 0, maxVertexAttribs = 0, maxTexUnits = 0;
@@ -383,6 +400,8 @@ std::unique_ptr<ContextGL> ContextGL::Make()
f.colorBufferFloat = true;
f.colorBufferHalfFloat = true;
}
+ else if (strcmp(ext, "GL_EXT_color_buffer_half_float") == 0)
+ f.colorBufferHalfFloat = true;
else if (strcmp(ext, "GL_EXT_texture_filter_anisotropic") == 0)
f.anisotropicFiltering = true;
else if (strcmp(ext, "GL_KHR_texture_compression_astc_ldr") == 0)
- 主要言語
- C++
- スター
- 1.3k
- フォーク
- 133
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rive-app/rive-runtime のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 83/100
rive-app/rive-runtime#143 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rive-app/rive-runtime#141 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
rive-app/rive-runtime#140 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
rive-app/rive-runtime#137 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
rive-app/rive-runtime#134 ·
rive-app/rive-runtime の issue をすべて見る
似ている issue
-
help wanted new command
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
tldr-pages/tldr#25111 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
bug test
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
OpenAssetIO/OpenAssetIO#1527 ·
-
iOS Fabric pointer-handler reset leaves the next lone touch non-primary対応中かも @alleneubank が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
react/react-native#59919 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
ROCm/rocm-systems#15475 ·
メンテナーはふだん 2 日以内に返信