API Documentation
Public Member Functions | List of all members
nkGraphics::ShaderPassCustomSlot Class Referenceabstract

A custom slot, implementable by external code. More...

Inheritance diagram for nkGraphics::ShaderPassCustomSlot:
nkGraphics::ShaderPassCustomDummySlot

Public Member Functions

 ShaderPassCustomSlot (System *system) noexcept
 
virtual ~ShaderPassCustomSlot ()
 
nkMemory::StringView getTypeName () const
 
virtual unsigned int getDataByteSize ()=0
 
virtual void fillDataBuffer (void *buffer)=0
 

Detailed Description

A custom slot, implementable by external code.

Constructor & Destructor Documentation

◆ ShaderPassCustomSlot()

nkGraphics::ShaderPassCustomSlot::ShaderPassCustomSlot ( System system)
noexcept

Constructor.

Parameters
systemThe system the resource should live in.

◆ ~ShaderPassCustomSlot()

virtual nkGraphics::ShaderPassCustomSlot::~ShaderPassCustomSlot ( )
virtual

Destructor.

Member Function Documentation

◆ getTypeName()

nkMemory::StringView nkGraphics::ShaderPassCustomSlot::getTypeName ( ) const
Returns
The type name of the custom slot.

◆ getDataByteSize()

virtual unsigned int nkGraphics::ShaderPassCustomSlot::getDataByteSize ( )
pure virtual
Returns
The size, in bytes, the slot will write for one fill call.

Implemented in nkGraphics::ShaderPassCustomDummySlot.

◆ fillDataBuffer()

virtual void nkGraphics::ShaderPassCustomSlot::fillDataBuffer ( void *  buffer)
pure virtual

A call to fill memory before a pass. The slot is supposed to write the data needed in the memory provided.

Parameters
bufferThe pointer to the memory to write.

Implemented in nkGraphics::ShaderPassCustomDummySlot.


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