rtxpt noise method#36
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA new ChangesShader Sampling Infrastructure and Stable Planes
Renderer Command Queue Fix
Estimated code review effort🎯 4 (Complex) | ⏱️ ~55 minutes Possibly Related PRs
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
shaders/raytracing/include/SampleGenerators.hlsli (1)
160-185: 💤 Low value
startingHashis assigned but never read.The
startingHashfield is set inmake()(line 172) but is never referenced anywhere in the struct's methods. This appears to be dead code. Either it's intended for future functionality or can be removed to reduce register pressure.🔧 Remove unused field if not needed
struct SampleSequenceGenerator { - uint startingHash; uint currentHash; uint activeIndex; uint dimension; static SampleSequenceGenerator make(SampleGeneratorVertexBase base, uint effectSeed, bool lowDiscrepancy, uint subSampleCount) { SampleSequenceGenerator ret; ret.activeIndex = base.sampleIndex * subSampleCount; ret.currentHash = Hash32Combine(base.baseHash, effectSeed); - ret.startingHash = ret.currentHash; if (lowDiscrepancy) {🤖 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 `@shaders/raytracing/include/SampleGenerators.hlsli` around lines 160 - 185, The `startingHash` field in the `SampleSequenceGenerator` struct is assigned a value in the `make()` static method but is never read or used anywhere else in the struct. Remove the unused field declaration from the struct definition and remove the assignment statement (ret.startingHash = ret.currentHash) from the `make()` method to eliminate dead code and reduce register pressure.
🤖 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 `@shaders/raytracing/include/SampleGenerators.hlsli`:
- Around line 160-185: The `startingHash` field in the `SampleSequenceGenerator`
struct is assigned a value in the `make()` static method but is never read or
used anywhere else in the struct. Remove the unused field declaration from the
struct definition and remove the assignment statement (ret.startingHash =
ret.currentHash) from the `make()` method to eliminate dead code and reduce
register pressure.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 9fc33094-c2e1-44b1-b915-04e293bba520
⛔ Files ignored due to path filters (2)
shaders/raytracing/GlobalIllumination/RayGeneration.hlslis excluded by!**/*.hlslshaders/raytracing/Pathtracing/RayGeneration.hlslis excluded by!**/*.hlsl
📒 Files selected for processing (4)
shaders/raytracing/include/Common.hlslishaders/raytracing/include/Materials/BSDF.hlslishaders/raytracing/include/SampleGenerators.hlslisrc/Renderer.cpp
Summary by CodeRabbit