#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 std::string & | getDisplayName () const |
VkDescriptorSetLayout | getDescriptorSetLayout () const |
![]() | |
Resource () | |
![]() | |
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... | |
VkDescriptorSetLayout | mDescriptorSetLayout = VK_NULL_HANDLE |
Descriptor set layout. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
![]() | |
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 |
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 |
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.