MobileRT  1.0
A multi platform C++ CPU progressive Ray Tracer.
Config::Builder Class Referencefinal

#include <config.h>

Collaboration diagram for Config::Builder:
Collaboration graph

Public Member Functions

 Builder () noexcept
 
Builder withShader (::std::int32_t shader)
 
Builder withAccelerator (::std::int32_t accelerator)
 
Builder withScene (::std::int32_t scene)
 
Builder withSpp (::std::int32_t spp)
 
Builder withSpl (::std::int32_t spl)
 
Config build ()
 

Public Attributes

::std::int32_t m_shader {}
 
::std::int32_t m_accelerator {}
 
::std::int32_t m_scene {}
 
::std::int32_t m_spp {}
 
::std::int32_t m_spl {}
 

Friends

class Config
 

Constructor & Destructor Documentation

◆ Builder()

Config::Builder::Builder ( )
explicitnoexcept

The constructor.

Member Function Documentation

◆ build()

Config Config::Builder::build ( )

The build method.

Returns
A new instance of a Config.
Here is the call graph for this function:

◆ withAccelerator()

Config::Builder Config::Builder::withAccelerator ( ::std::int32_t  accelerator)

The constructor.

Parameters
acceleratorThe accelerator index.
Returns
A builder for the Config.
Here is the caller graph for this function:

◆ withScene()

Config::Builder Config::Builder::withScene ( ::std::int32_t  scene)

The constructor.

Parameters
sceneThe scene index.
Returns
A builder for the Config.
Here is the caller graph for this function:

◆ withShader()

Config::Builder Config::Builder::withShader ( ::std::int32_t  shader)

The constructor.

Parameters
shaderThe shader index.
Returns
A builder for the Config.
Here is the caller graph for this function:

◆ withSpl()

Config::Builder Config::Builder::withSpl ( ::std::int32_t  spl)

The constructor.

Parameters
splThe number of samples per light.
Returns
A builder for the Config.
Here is the caller graph for this function:

◆ withSpp()

Config::Builder Config::Builder::withSpp ( ::std::int32_t  spp)

The constructor.

Parameters
sppThe number of samples per pixel.
Returns
A builder for the Config.
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ Config

friend class Config
friend

Member Data Documentation

◆ m_accelerator

::std::int32_t Config::Builder::m_accelerator {}

◆ m_scene

::std::int32_t Config::Builder::m_scene {}

◆ m_shader

::std::int32_t Config::Builder::m_shader {}

◆ m_spl

::std::int32_t Config::Builder::m_spl {}

◆ m_spp

::std::int32_t Config::Builder::m_spp {}

The documentation for this class was generated from the following files: