feat(graphics): implement hardware MSAA support for 3D scene color pass

- Added functionality to enable hardware MSAA (2x, 4x, 8x) for the 3D scene color pass, enhancing edge quality for 3D models and voxels.
- Introduced `setMsaaSamples` and `getMsaaSamples` methods in the Graphics API to control MSAA sample count.
- Updated RenderControl to include MSAA as a feature, with default settings for enabling/disabling.
- Modified the rendering pipeline to accommodate MSAA, including adjustments to render passes and framebuffers.
- Enhanced documentation and tests to cover new MSAA functionality and ensure stability across various scenarios.
This commit is contained in:
西风逍遥游 committed 2026-08-14 10:15:07 +08:00
1 parent af78b2a30d
commit 6adfc8086c
13 files changed
+351 -86

No files matched your search

+7
View File
@@ -41,6 +41,7 @@ TEST_CASE("renderControl.compileFeaturesToPasses") {
CHECK(rc.supports("ao"));
CHECK(rc.supports("gi"));
CHECK(rc.supports("aa"));
CHECK(rc.supports("msaa"));
CHECK(rc.supports("shadow"));
CHECK(!rc.supports("deferred"));
@@ -53,6 +54,12 @@ TEST_CASE("renderControl.compileFeaturesToPasses") {
CHECK(rc.isEnabled("ao"));
CHECK(rc.isEnabled("gi"));
CHECK(rc.isEnabled("aa"));
CHECK(rc.isEnabled("msaa"));
rc.disable("msaa");
CHECK(!rc.isEnabled("msaa"));
rc.enable("msaa");
CHECK(rc.isEnabled("msaa"));
rc.disable("ao");
rc.disable("gi");