A memory slot in a memory resource. More...
Public Member Functions | |
ShaderMemorySlot () noexcept | |
virtual | ~ShaderMemorySlot () |
nkMemory::StringView | getSlotType () const |
virtual nkMemory::StringView | getDataTypeAsString () const =0 |
virtual void | exportClassToTree (nkExport::Node *rootNode) override |
Public Member Functions inherited from nkExport::Exportable | |
Exportable () noexcept | |
virtual | ~Exportable () |
virtual void | importClassFromTree (Node *rootNode)=0 |
A memory slot in a memory resource.
Conceptually, a memory buffer is made of slots filling information they are made for. For instance, a constant buffer will be able to receive pass slots, and each will feed a given variable in the buffer (view matrix, projection matrix...).
|
noexcept |
Constructor.
|
virtual |
Destructor.
nkMemory::StringView nkGraphics::ShaderMemorySlot::getSlotType | ( | ) | const |
|
pure virtual |
Implemented in nkGraphics::ShaderPassMemorySlot, and nkGraphics::ShaderInstanceMemorySlot.
|
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::ShaderPassMemorySlot, and nkGraphics::ShaderInstanceMemorySlot.