Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
VanillaPMRenderer.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <atomic>
6
7namespace ph
8{
9
11{
12public:
14 PMCommonParams commonParams,
15 Viewport viewport,
16 SampleFilter filter,
17 uint32 numWorkers);
18
19 void doRender() override;
20 void retrieveFrame(std::size_t layerIndex, HdrRgbFrame& out_frame) override;
21
24
25 void asyncPeekFrame(
26 std::size_t layerIndex,
27 const Region& region,
28 HdrRgbFrame& out_frame) override;
29
31
32private:
33 void renderWithVanillaPM();
34
35 std::atomic_uint64_t m_photonsPerSecond;
36};
37
38}// 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 VanillaPMRenderer.h:11
void doRender() override
Perform rendering.
Definition VanillaPMRenderer.cpp:42
RenderProgress asyncQueryRenderProgress() override
Get progress of the ongoing rendering process. Implementation is advised to provide this information ...
Definition VanillaPMRenderer.cpp:153
void retrieveFrame(std::size_t layerIndex, HdrRgbFrame &out_frame) override
Get the rendered result.
Definition VanillaPMRenderer.cpp:137
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 VanillaPMRenderer.cpp:163
VanillaPMRenderer(PMCommonParams commonParams, Viewport viewport, SampleFilter filter, uint32 numWorkers)
Definition VanillaPMRenderer.cpp:27
RenderObservationInfo getObservationInfo() const
Get information about available transient outputs of an ongoing render operation. This information wi...
Definition VanillaPMRenderer.cpp:180
RenderStats asyncQueryRenderStats() override
Get general information of the ongoing rendering process. More information can be provided by the imp...
Definition VanillaPMRenderer.cpp:142
Definition Viewport.h:16
The root for all renderer implementations.
Definition EEngineProject.h:6