PixelLightAPI
.
|
Abstract renderer program uniform block. More...
#include <ProgramUniformBlock.h>
Public Member Functions | |
virtual bool | SetUniformBuffer (UniformBuffer *pUniformBuffer, PLCore::uint32 nBindingPoint)=0 |
Sets the uniform buffer feeding this uniform block with data. | |
virtual PLCore::uint32 | GetIndex () const =0 |
Returns the uniform block index. | |
virtual PLCore::uint32 | GetSize () const =0 |
Returns the uniform block data size (in bytes) | |
virtual PLCore::uint32 | GetUniformOffset (const PLCore::String &sUniformName) const =0 |
Returns the offset (in bytes) of an uniform inside the uniform block. | |
virtual PLCore::uint32 | GetUniformSize (const PLCore::String &sUniformName) const =0 |
Returns the size (in bytes) of an uniform inside the uniform block. | |
virtual PLCore::uint32 | GetUniformNumOfArrayElements (const PLCore::String &sUniformName) const =0 |
Returns the number of array elements of an uniform inside the uniform block. | |
Protected Member Functions | |
PLRENDERER_API | ProgramUniformBlock () |
Constructor. | |
virtual PLRENDERER_API | ~ProgramUniformBlock () |
Destructor. |
Abstract renderer program uniform block.
PLRENDERER_API PLRenderer::ProgramUniformBlock::ProgramUniformBlock | ( | ) | [protected] |
Constructor.
virtual PLRENDERER_API PLRenderer::ProgramUniformBlock::~ProgramUniformBlock | ( | ) | [protected, virtual] |
Destructor.
virtual bool PLRenderer::ProgramUniformBlock::SetUniformBuffer | ( | UniformBuffer * | pUniformBuffer, |
PLCore::uint32 | nBindingPoint | ||
) | [pure virtual] |
Sets the uniform buffer feeding this uniform block with data.
[in] | pUniformBuffer | The uniform buffer feeding this uniform block with data, can be a null pointer |
[in] | nBindingPoint | Binding point to use |
virtual PLCore::uint32 PLRenderer::ProgramUniformBlock::GetIndex | ( | ) | const [pure virtual] |
Returns the uniform block index.
virtual PLCore::uint32 PLRenderer::ProgramUniformBlock::GetSize | ( | ) | const [pure virtual] |
Returns the uniform block data size (in bytes)
virtual PLCore::uint32 PLRenderer::ProgramUniformBlock::GetUniformOffset | ( | const PLCore::String & | sUniformName | ) | const [pure virtual] |
Returns the offset (in bytes) of an uniform inside the uniform block.
[in] | sUniformName | Name of the uniform |
virtual PLCore::uint32 PLRenderer::ProgramUniformBlock::GetUniformSize | ( | const PLCore::String & | sUniformName | ) | const [pure virtual] |
Returns the size (in bytes) of an uniform inside the uniform block.
virtual PLCore::uint32 PLRenderer::ProgramUniformBlock::GetUniformNumOfArrayElements | ( | const PLCore::String & | sUniformName | ) | const [pure virtual] |
Returns the number of array elements of an uniform inside the uniform block.
|