#include <PCG.hpp>
|
::std::atomic<::std::uint32_t > | sample_ {} |
|
const ::std::uint32_t | domainSize_ {::std::numeric_limits<::std::uint32_t>::max()} |
|
::std::uint32_t | samples_ {::std::numeric_limits<::std::uint32_t>::max()} |
|
template<const ::std::size_t S> |
float | getSampleFromArray (const ::std::array< float, S > &values) |
|
This sampler returns the PCG sequence.
- See also
- https://www.pcg-random.org/
◆ PCG() [1/3]
◆ PCG() [2/3]
Components::PCG::PCG |
( |
const PCG & |
random | ) |
|
|
delete |
◆ PCG() [3/3]
Components::PCG::PCG |
( |
PCG && |
random | ) |
|
|
deletenoexcept |
◆ ~PCG()
Components::PCG::~PCG |
( |
| ) |
|
|
finaldefault |
◆ getSample()
float PCG::getSample |
( |
::std::uint32_t |
sample | ) |
|
|
finalvirtual |
Calculates a new sample.
- Parameters
-
sample | The index of the desired sample. |
- Returns
- A random value between 0 and 1.
Implements MobileRT::Sampler.
◆ operator=() [1/2]
PCG& Components::PCG::operator= |
( |
const PCG & |
random | ) |
|
|
delete |
◆ operator=() [2/2]
PCG& Components::PCG::operator= |
( |
PCG && |
random | ) |
|
|
deletenoexcept |
The documentation for this class was generated from the following files: