The base for a pass within a TargetOperations.
More...
Public Member Functions | |
Pass (System *system) noexcept | |
virtual | ~Pass () |
System * | getSystem () const |
TargetOperations * | getParent () const |
PASS_TYPE | getType () const |
nkMemory::StringView | getName () const |
void | setParent (TargetOperations *parent) |
void | setName (nkMemory::StringView name) |
virtual void | exportClassToTree (nkExport::Node *rootNode) override |
virtual void | importClassFromTree (nkExport::Node *rootNode) override |
Public Member Functions inherited from nkExport::Exportable | |
Exportable () noexcept | |
virtual | ~Exportable () |
The base for a pass within a TargetOperations.
One pass is attached to one target operations, which owns it.
See TargetOperations for all the passes available.
|
noexcept |
Constructor. A pass is allocated through the TargetOperations it should work in.
system | The system the resource should live in. |
|
virtual |
Destructor. A pass should be freed through the TargetOperations it works in.
System* nkGraphics::Pass::getSystem | ( | ) | const |
TargetOperations* nkGraphics::Pass::getParent | ( | ) | const |
PASS_TYPE nkGraphics::Pass::getType | ( | ) | const |
nkMemory::StringView nkGraphics::Pass::getName | ( | ) | const |
void nkGraphics::Pass::setParent | ( | TargetOperations * | parent | ) |
Sets the parent target operations.
parent | The parent to set. |
void nkGraphics::Pass::setName | ( | nkMemory::StringView | name | ) |
Sets the name of the pass.
name | The name to assign. |
|
overridevirtual |
Exports an item into a tree describing its structure and its data.
rootNode | The node into which the object has to write its related information. |
Implements nkExport::Exportable.
Reimplemented in nkGraphics::InstancingPass, nkGraphics::ClearTargetsPass, nkGraphics::RenderScenePass, nkGraphics::RaytracingPass, nkGraphics::PostProcessPass, nkGraphics::ComputePass, and nkGraphics::MonoMaterialPass.
|
overridevirtual |
Imports information from a tree which is supposed to describe its structure and data.
rootNode | The root node of the tree holding the information. |
Implements nkExport::Exportable.
Reimplemented in nkGraphics::ClearTargetsPass, nkGraphics::InstancingPass, nkGraphics::RenderScenePass, nkGraphics::RaytracingPass, nkGraphics::PostProcessPass, nkGraphics::ComputePass, and nkGraphics::MonoMaterialPass.