API Documentation
ConstantBuffer.h
1 // ConstantBuffer.h
3 //
5 
6 namespace nkGraphics
7 {
11  class DLL_GRAPHICS_EXPORT ConstantBuffer : public nkExport::Exportable
12  {
13  public :
14 
22  virtual ~ConstantBuffer () ;
23 
24  // Getters
29  ShaderPassMemorySlot* getPassMemorySlot (unsigned int index) ;
36  ShaderPassMemorySlot* getPassMemorySlotReadOnly (unsigned int index) const ;
37 
51  void changePassMemorySlotOrder (unsigned int fromIndex, unsigned int toIndex) ;
57  void deletePassMemorySlot (unsigned int index) ;
58 
62  virtual void checkBuffer () = 0 ;
66  virtual void fillBuffer () = 0 ;
67 
73  virtual void exportClassToTree (nkExport::Node* rootNode) override ;
79  virtual void importClassFromTree (nkExport::Node* rootNode) override ;
80  } ;
81 }
nkGraphics::ConstantBuffer::checkBuffer
virtual void checkBuffer()=0
nkExport::Exportable
An interface to define objects that can be exported using this component.
Definition: Exportable.h:15
nkGraphics::ConstantBuffer::exportClassToTree
virtual void exportClassToTree(nkExport::Node *rootNode) override
nkGraphics::ConstantBuffer::getPassMemorySlotReadOnly
ShaderPassMemorySlot * getPassMemorySlotReadOnly(unsigned int index) const
nkGraphics::ShaderPassMemorySlot
A memory slot that fits into a ConstantBuffer. The slot fills entries within the buffer.
Definition: ShaderPassMemorySlot.h:15
nkGraphics::ConstantBuffer::importClassFromTree
virtual void importClassFromTree(nkExport::Node *rootNode) override
nkGraphics::ConstantBuffer::getPassMemorySlot
ShaderPassMemorySlot * getPassMemorySlot(unsigned int index)
nkExport::Node
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
nkGraphics::ConstantBuffer::ConstantBuffer
ConstantBuffer()
nkGraphics::ConstantBuffer::~ConstantBuffer
virtual ~ConstantBuffer()
nkGraphics::ConstantBuffer::fillBuffer
virtual void fillBuffer()=0
nkGraphics::ConstantBuffer::changePassMemorySlotOrder
void changePassMemorySlotOrder(unsigned int fromIndex, unsigned int toIndex)
nkGraphics::ConstantBuffer::addPassMemorySlot
ShaderPassMemorySlot * addPassMemorySlot()
nkGraphics::ConstantBuffer::deletePassMemorySlot
void deletePassMemorySlot(unsigned int index)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ConstantBuffer
Describes a constant buffer.
Definition: ConstantBuffer.h:12