fix(VL): broken VL with VL core feature disabled#1360
Conversation
WalkthroughThe patch restructures the compute shader dispatch logic for volumetric lighting in Changes
Sequence Diagram(s)sequenceDiagram
participant Renderer
participant VolumetricLighting
participant ShaderManager
Renderer->>VolumetricLighting: Check if loaded
alt VolumetricLighting loaded
alt CurrentlyDispatchedShader is null
Renderer->>ShaderManager: Get Generate/Raymarch Shader
ShaderManager-->>Renderer: Return Shader
else CurrentlyDispatchedShader not null
Renderer->>ShaderManager: Get BlurH/BlurV Shader
ShaderManager-->>Renderer: Return Shader
Renderer->>VolumetricLighting: SetDimensionsCB(), SetGroupCounts*
end
else VolumetricLighting not loaded
Renderer->>ShaderManager: Fallback to default dispatch logic
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope changes detected. Possibly related PRs
Suggested reviewers
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (7)📓 Common learnings📚 Learning: isreflectionsraytracing.hlsl and isworldmap.hlsl in the skyrim-community-shaders repository are imag...Applied to files:
📚 Learning: in the skyrim-community-shaders repository, file deletion error handling improvements that replace e...Applied to files:
📚 Learning: in the skyrim-community-shaders project, boolean flags in c++ structs that interface with hlsl shade...Applied to files:
📚 Learning: in the skyrim-community-shaders project, boolean flags in c++ structs that interface with hlsl shade...Applied to files:
📚 Learning: default parameter values are supported in the hlsl compiler used by the skyrim-community-shaders pro...Applied to files:
📚 Learning: in the skyrim community shaders project, the `smoothdrawcalls` array in the `state` class is declare...Applied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
✅ A pre-release build is available for this PR: |
Fixes #1349
Summary by CodeRabbit