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

オープン
#307 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
43/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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?

主要言語
CMake
スター
4.7k
フォーク
321
平均マージ
13分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenMoonRay/openmoonray のほかの issue

OpenMoonRay/openmoonray の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。