| 33 | } |
| 34 | |
| 35 | virtual void CreateRTPipelines() override |
| 36 | { |
| 37 | auto pipelineBaker = GetRTPipelineBaker(); |
| 38 | using SM = donut::engine::ShaderMacro; |
| 39 | |
| 40 | // these don't actually compile any shaders - this happens later in m_ptPipelineBaker->Update |
| 41 | m_ptPipelineReference = pipelineBaker->CreateVariant("PathTracerSample.hlsl", { SM("PATH_TRACER_MODE", "PATH_TRACER_MODE_REFERENCE") }, "REF"); |
| 42 | m_ptPipelineBuildStablePlanes = pipelineBaker->CreateVariant("PathTracerSample.hlsl", { SM("PATH_TRACER_MODE", "PATH_TRACER_MODE_BUILD_STABLE_PLANES") }, "BUILD"); |
| 43 | m_ptPipelineFillStablePlanes = pipelineBaker->CreateVariant("PathTracerSample.hlsl", { SM("PATH_TRACER_MODE", "PATH_TRACER_MODE_FILL_STABLE_PLANES") }, "FILL"); |
| 44 | m_ptPipelineTestRaygenPPHDR = pipelineBaker->CreateVariant("TestRaygenPP.hlsl", { SM("PP_TEST_HDR", "1") }, "TESTRG", true); |
| 45 | m_ptPipelineEdgeDetection = pipelineBaker->CreateVariant("TestRaygenPP.hlsl", { SM("PP_EDGE_DETECTION", "1") }, "EDGY", true); |
| 46 | } |
| 47 | |
| 48 | virtual void DestroyRTPipelines() override |
| 49 | { |
nothing calls this directly
no test coverage detected