fix(ssgi): ensure ssgiil values off#2372
Conversation
📝 WalkthroughWalkthroughThe PR adds a conditional guard in the dynamic cubemaps + SSGI specular composition path. Instead of unconditionally converting ChangesSSGI Specular Conditional Guard
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
No actionable suggestions for changed features. |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
package/Shaders/DeferredCompositeCS.hlsl (1)
302-306: Run targetedhlslkitvalidation for SSGI cubemap permutations before merge.Please validate/compile this shader with at least
SSGI+DYNAMIC_CUBEMAPSenabled (and relevantSKYLIGHTING/IBLvariants), since this branch-specific guard only executes under those defines. Also, suggested PR title:fix(ssgi): zero specular il when ssgi is off. If there is a tracking bug, addFixes #<id>in the PR description.As per coding guidelines "**/*.hlsl: Use hlslkit for shader validation and compilation during targeted development testing and before deployment" and "When reviewing PRs, please provide suggestions for Conventional Commit Titles ... [and] Issue References".
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@package/Shaders/DeferredCompositeCS.hlsl` around lines 302 - 306, Run targeted hlslkit shader validation/compilation for the SSGI + DYNAMIC_CUBEMAPS permutation (and also SKYLIGHTING/IBL variants) to exercise the branch that uses ssgiIlSpecular; confirm that when the SSGI path is disabled the code path sets ssgiIlSpecular to zero and that the Color::YCoCgToRGB/Color::RGBToYCoCg conversion call remains valid under those defines; if the validation fails, adjust the branch so ssgiIlSpecular is explicitly zeroed in all compilation permutations where SSGI may be off and re-run hlslkit until the SSGI+DYNAMIC_CUBEMAPS builds succeed, then use PR title "fix(ssgi): zero specular il when ssgi is off" and add a Fixes #<id> reference if applicable.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@package/Shaders/DeferredCompositeCS.hlsl`:
- Around line 302-306: Run targeted hlslkit shader validation/compilation for
the SSGI + DYNAMIC_CUBEMAPS permutation (and also SKYLIGHTING/IBL variants) to
exercise the branch that uses ssgiIlSpecular; confirm that when the SSGI path is
disabled the code path sets ssgiIlSpecular to zero and that the
Color::YCoCgToRGB/Color::RGBToYCoCg conversion call remains valid under those
defines; if the validation fails, adjust the branch so ssgiIlSpecular is
explicitly zeroed in all compilation permutations where SSGI may be off and
re-run hlslkit until the SSGI+DYNAMIC_CUBEMAPS builds succeed, then use PR title
"fix(ssgi): zero specular il when ssgi is off" and add a Fixes #<id> reference
if applicable.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: a9670d5a-9082-4778-9cf5-84efb92a92bf
📒 Files selected for processing (1)
package/Shaders/DeferredCompositeCS.hlsl
Summary by CodeRabbit
Release Notes