Add a "fatal" function for multi-output Map shaders
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 43/100
Research direction
Start with lib/rendering/rndr/RenderContext.h and RenderContext.cc, then trace how fatalSampleBool is installed and how multi-output shaders receive their output buffer. The issue suggests zeroing the buffer or assigning type-appropriate error values, and asks whether error values can be cached. Done means a multi-output fatal function is installed through mSceneContext->setFatalSampleFuncMulti(); the issue does not name tests to run.
Written by the indexing model from the issue text.
Description
In moonray: lib/rendering/rndr/RenderContext.{h,cc} Add a "fatal" function analogous to fatalSampleBool for multi-output shaders (fatalSampleMulti?) and call mSceneContext->setFatalSampleFuncMulti() to set it on the context.
A trivial implementation of this would be to get the size of the output buffer and zero it while a more advanced one would iterate through the outputs and set an appropriate error value for each type. This may be awfully expensive though. Is there someplace we could cache an error value?
- Dominant language
- CMake
- Stars
- 4.7k
- Forks
- 321
- Avg merge
- 13m
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenMoonRay/openmoonray
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
OpenMoonRay/openmoonray#332 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
OpenMoonRay/openmoonray#320 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
OpenMoonRay/openmoonray#233 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 57/100
OpenMoonRay/openmoonray#331 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
OpenMoonRay/openmoonray#330 ·
All issues in OpenMoonRay/openmoonray
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
NethermindEth/nethermind#15684 ·
Maintainers usually reply within 1 day
-
bug(bufdelete): all()/other() abort with "Invalid buffer id" when a buffer is wiped during the loopOpen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
folke/snacks.nvim#2986 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
OCA/l10n-brazil#5602 ·
Maintainers usually reply within 1 day
-
documentation review-2.0.0
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
dkuenzel/meshcore-home-gateway#98 ·
Maintainers usually reply within 1 day
-
mp4box.js — 20-byte `sgpd` box with large `entry_count` causes unbounded loop and heap OOM abortOpen
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day