Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
SGUniformRandom.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace ph
6{
7
9{
10public:
12
13 std::unique_ptr<SampleGenerator> makeNewborn(std::size_t numSampleBatches) const override;
14
15private:
16 void onRebirth() override;
17
18 void genSamples1D(
19 const SampleContext& context,
20 const SampleStage& stage,
21 SamplesND out_samples) override;
22
23 void genSamples2D(
24 const SampleContext& context,
25 const SampleStage& stage,
26 SamplesND out_samples) override;
27};
28
29}// end namespace ph
Definition SGUniformRandom.h:9
std::unique_ptr< SampleGenerator > makeNewborn(std::size_t numSampleBatches) const override
Make a new generator.
Definition SGUniformRandom.cpp:32
Definition SampleContext.h:9
Generates samples in [0, 1]. Generators of different types produces samples with different properties...
Definition SampleGenerator.h:35
std::size_t numSampleBatches() const
Definition SampleGenerator.h:143
SampleGenerator(std::size_t numSampleBatches, std::size_t maxCachedBatches)
Definition SampleGenerator.cpp:11
Definition SampleStage.h:14
Definition SamplesND.h:16
The root for all renderer implementations.
Definition EEngineProject.h:6