Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
StochasticProgressivePMRenderer.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <atomic>
6
7namespace ph
8{
9
14{
15public:
17 PMCommonParams commonParams,
18 Viewport viewport,
19 SampleFilter filter,
20 uint32 numWorkers);
21
22 void doRender() override;
23 void retrieveFrame(std::size_t layerIndex, HdrRgbFrame& out_frame) override;
24
27
28 void asyncPeekFrame(
29 std::size_t layerIndex,
30 const Region& region,
31 HdrRgbFrame& out_frame) override;
32
34
35private:
36 void renderWithStochasticProgressivePM();
37
38 std::atomic_uint64_t m_photonsPerSecond;
39};
40
41}// end namespace ph
Common parameters of photon mapping.
Definition PMCommonParams.h:13
Definition PMRendererBase.h:23
Meta information for data related to ongoing render operation.
Definition RenderObservationInfo.h:15
Definition RenderProgress.h:12
Definition RenderStats.h:12
uint32 numWorkers() const
Definition Renderer.h:155
An image reconstruction kernel.
Definition SampleFilter.h:17
Definition StochasticProgressivePMRenderer.h:14
RenderStats asyncQueryRenderStats() override
Get general information of the ongoing rendering process. More information can be provided by the imp...
Definition StochasticProgressivePMRenderer.cpp:266
void asyncPeekFrame(std::size_t layerIndex, const Region &region, HdrRgbFrame &out_frame) override
Get the intermediate render result. This method is similar to retrieveFrame(), except that correctnes...
Definition StochasticProgressivePMRenderer.cpp:287
void retrieveFrame(std::size_t layerIndex, HdrRgbFrame &out_frame) override
Get the rendered result.
Definition StochasticProgressivePMRenderer.cpp:261
RenderProgress asyncQueryRenderProgress() override
Get progress of the ongoing rendering process. Implementation is advised to provide this information ...
Definition StochasticProgressivePMRenderer.cpp:277
StochasticProgressivePMRenderer(PMCommonParams commonParams, Viewport viewport, SampleFilter filter, uint32 numWorkers)
Definition StochasticProgressivePMRenderer.cpp:53
void doRender() override
Perform rendering.
Definition StochasticProgressivePMRenderer.cpp:68
RenderObservationInfo getObservationInfo() const
Get information about available transient outputs of an ongoing render operation. This information wi...
Definition StochasticProgressivePMRenderer.cpp:304
Definition Viewport.h:16
The root for all renderer implementations.
Definition EEngineProject.h:6