Add a "fatal" function for multi-output Map shaders

Abierto
#307 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
43/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?

Lenguaje dominante
CMake
Estrellas
4.7k
Forks
321
Merge medio
13 min
PR fusionados (30 d)
3

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de OpenMoonRay/openmoonray

Todos los issues de OpenMoonRay/openmoonray

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.