Karma Engine
Loading...
Searching...
No Matches
Karma::VulkanShader Class Reference
Inheritance diagram for Karma::VulkanShader:
Collaboration diagram for Karma::VulkanShader:

Public Member Functions

 VulkanShader (const std::string &vertexSrc, const std::string &fragmentSrc, std::shared_ptr< UniformBufferObject > ubo)
 
virtual void Bind () const override
 
virtual void UnBind () const override
 
std::vector< uint32_t > Compile (const std::string &src, const std::string &source, EShLanguage lang)
 
virtual void GenerateUniformBufferObject () override
 
virtual void BindUniformBufferObject () override
 
void UploadUniformMat4 (const std::string &name, const glm::mat4 &matrix)
 
const std::vector< uint32_t > & GetVertSpirV () const
 
const std::vector< uint32_t > & GetFragSpirV () const
 
std::shared_ptr< VulkanUniformBufferGetUniformBufferObject () const
 
- Public Member Functions inherited from Karma::Shader
 Shader (std::shared_ptr< UniformBufferObject > ubo)
 
virtual void Bind (const std::string &texShaderNames) const
 
std::shared_ptr< UniformBufferObjectGetUniformBufferObject () const
 
const std::string & GetShaderName () const
 

Additional Inherited Members

- Static Public Member Functions inherited from Karma::Shader
static ShaderCreate (const std::string &vertexSrc, const std::string &fragmentSrc)
 
static ShaderCreate (const std::string &vertexSrcFile, const std::string &fragmentSrcFile, std::shared_ptr< UniformBufferObject > ubo, bool bIsFile, const std::string &shaderName="NoNamedShader")
 
- Protected Attributes inherited from Karma::Shader
std::string m_ShaderName
 

Member Function Documentation

◆ Bind()

void Karma::VulkanShader::Bind ( ) const
overridevirtual

Reimplemented from Karma::Shader.

◆ BindUniformBufferObject()

virtual void Karma::VulkanShader::BindUniformBufferObject ( )
inlineoverridevirtual

Reimplemented from Karma::Shader.

◆ GenerateUniformBufferObject()

virtual void Karma::VulkanShader::GenerateUniformBufferObject ( )
inlineoverridevirtual

Reimplemented from Karma::Shader.

◆ UnBind()

void Karma::VulkanShader::UnBind ( ) const
overridevirtual

Reimplemented from Karma::Shader.


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