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
3
#include "
Core/SampleGenerator/SampleGenerator.h
"
4
5
namespace
ph
6
{
7
8
class
SGUniformRandom
:
public
SampleGenerator
9
{
10
public
:
11
using
SampleGenerator::SampleGenerator
;
12
13
std::unique_ptr<SampleGenerator>
makeNewborn
(std::size_t
numSampleBatches
)
const override
;
14
15
private
:
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
SampleGenerator.h
ph::SGUniformRandom
Definition
SGUniformRandom.h:9
ph::SGUniformRandom::makeNewborn
std::unique_ptr< SampleGenerator > makeNewborn(std::size_t numSampleBatches) const override
Make a new generator.
Definition
SGUniformRandom.cpp:32
ph::SampleContext
Definition
SampleContext.h:9
ph::SampleGenerator
Generates samples in [0, 1]. Generators of different types produces samples with different properties...
Definition
SampleGenerator.h:35
ph::SampleGenerator::numSampleBatches
std::size_t numSampleBatches() const
Definition
SampleGenerator.h:143
ph::SampleGenerator::SampleGenerator
SampleGenerator(std::size_t numSampleBatches, std::size_t maxCachedBatches)
Definition
SampleGenerator.cpp:11
ph::SampleStage
Definition
SampleStage.h:14
ph::SamplesND
Definition
SamplesND.h:16
ph
The root for all renderer implementations.
Definition
EEngineProject.h:6
Source
Core
SampleGenerator
SGUniformRandom.h
Generated by
1.11.0