#include <shader.h>
Public Member Functions | |
| BaseShader (Core &core) | |
| virtual | ~BaseShader () |
| const SamplerDeclarations & | getSamplerDeclarations () const |
| const std::vector< BufferObjectDeclaration > & | getUBODeclarations () const |
| const std::vector< BufferObjectDeclaration > & | getSSBODeclarations () const |
| const ShaderConstantDeclarations & | getConstantDeclarations () const |
| const std::string & | getDisplayName () const |
| VkDescriptorSetLayout | getDescriptorSetLayout () const |
| void | clear () |
Public Member Functions inherited from Resource | |
| Resource () | |
Public Member Functions inherited from Object | |
| Object () | |
| virtual | ~Object () |
| virtual bool | init (utility::ErrorState &errorState) |
| virtual void | onDestroy () |
| Object (Object &)=delete | |
| Object & | operator= (const Object &)=delete |
| Object (Object &&)=delete | |
| Object & | operator= (Object &&)=delete |
Protected Member Functions | |
| bool | initLayout (VkDevice device, nap::utility::ErrorState &errorState) |
| bool | verifyShaderVariableDeclarations (utility::ErrorState &errorState) |
Protected Attributes | |
| RenderService * | mRenderService = nullptr |
| Handle to render engine. More... | |
| std::string | mDisplayName |
| Filename of shader used as display name. More... | |
| BufferObjectDeclarationList | mUBODeclarations |
| All uniform buffer object declarations. More... | |
| BufferObjectDeclarationList | mSSBODeclarations |
| All storage buffer object declarations. More... | |
| SamplerDeclarations | mSamplerDeclarations |
| All sampler declarations. More... | |
| ShaderConstantDeclarations | mConstantDeclarations |
| All shader constant declarations. More... | |
| VkDescriptorSetLayout | mDescriptorSetLayout = VK_NULL_HANDLE |
| Descriptor set layout. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Object | |
| static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Public Attributes inherited from Object | |
| std::string | mID |
| Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Base class of all shaders
| BaseShader | ( | Core & | core | ) |
|
virtual |
| void clear | ( | ) |
Clears shader declarations and layout information.
| const ShaderConstantDeclarations& getConstantDeclarations | ( | ) | const |
| VkDescriptorSetLayout getDescriptorSetLayout | ( | ) | const |
| const std::string& getDisplayName | ( | ) | const |
| const SamplerDeclarations& getSamplerDeclarations | ( | ) | const |
| const std::vector<BufferObjectDeclaration>& getSSBODeclarations | ( | ) | const |
| const std::vector<BufferObjectDeclaration>& getUBODeclarations | ( | ) | const |
|
protected |
Initializes the descriptorset layout of this shader.
| device | the vulkan device. |
| errorState | contains the error if the operation failed. |
|
protected |
Verifies if the shader declarations are in accordance with the API.
| errorState | contains the error if the operation failed. |
|
protected |
All shader constant declarations.
|
protected |
Descriptor set layout.
|
protected |
Filename of shader used as display name.
|
protected |
Handle to render engine.
|
protected |
All sampler declarations.
|
protected |
All storage buffer object declarations.
|
protected |
All uniform buffer object declarations.