Configuration for the system's initialization.
More...
Configuration for the system's initialization.
◆ Configuration()
| nkGraphics::Configuration::Configuration |
( |
| ) |
|
|
noexcept |
◆ getWantedApi()
- Returns
- The currently wanted rendering API.
◆ getDisableRaytracing()
| bool nkGraphics::Configuration::getDisableRaytracing |
( |
| ) |
const |
- Returns
- Whether the raytracing capabilities have been forcefully disabled (true) or not (false).
◆ setWantedApi()
Sets the wanted rendering API.
- Parameters
-
◆ setDisableRaytracing()
| void nkGraphics::Configuration::setDisableRaytracing |
( |
bool |
v | ) |
|
Sets whether the raytracing capabilities should be forcefully disabled, even if the renderer and hardware supports it. This will prevent all raytracing related initialization paths, possibly offering a fix for some crashes if the driver does not support them well.
- Parameters
-
| v | Whether to disable the feature (true) or not (false). Defaults to false. |
◆ exportClassToTree()
| virtual void nkGraphics::Configuration::exportClassToTree |
( |
nkExport::Node * |
rootNode | ) |
|
|
overridevirtual |
Exports the class into a tree.
Format :
{
"wantedApi" : "[auto|d3d11|d3d12|gles]",
"disableRaytracing": [false|true]
}
- Parameters
-
| rootNode | The node to export into. |
Implements nkExport::Exportable.
◆ importClassFromTree()
| virtual void nkGraphics::Configuration::importClassFromTree |
( |
nkExport::Node * |
rootNode | ) |
|
|
overridevirtual |
Imports information from a tree which is supposed to describe its structure and data.
- Parameters
-
| rootNode | The root node of the tree holding the information. |
Implements nkExport::Exportable.
The documentation for this class was generated from the following file: