|
Hymn to Beauty
C++ 3D Engine
|
OpenGL implementation of ShaderProgram. More...
#include <OpenGLShaderProgram.hpp>
Classes | |
| struct | PushConstant |
| Information about a push constant. More... | |
Public Member Functions | |
| OpenGLShaderProgram (std::initializer_list< const Shader * > shaders) | |
| Create new OpenGL shader program. More... | |
| ~OpenGLShaderProgram () final | |
| Destructor. More... | |
| unsigned int | GetID () const |
| Get shader program ID. More... | |
| const std::vector< PushConstant > & | GetPushConstants () const |
| Get information about the push constants in this shader program. More... | |
| bool | WritesToStorageBuffer () const |
| Get whether the shader program writes to a storage buffer. More... | |
Public Member Functions inherited from Video::ShaderProgram | |
| ShaderProgram () | |
| Create a new shader program. More... | |
| virtual | ~ShaderProgram () |
| Destructor. More... | |
Additional Inherited Members | |
Public Types inherited from Video::ShaderProgram | |
| enum | BindingType { MATRICES , MATERIAL , UNIFORMS , STORAGE_BUFFER , BINDING_TYPES } |
| A type of bound resource. More... | |
OpenGL implementation of ShaderProgram.
|
explicit |
Create new OpenGL shader program.
| shaders | List of shaders to link together. |
|
final |
Destructor.
| unsigned int Video::OpenGLShaderProgram::GetID | ( | ) | const |
Get shader program ID.
| const std::vector< OpenGLShaderProgram::PushConstant > & Video::OpenGLShaderProgram::GetPushConstants | ( | ) | const |
Get information about the push constants in this shader program.
Push constants are implemented using uniforms.
| bool Video::OpenGLShaderProgram::WritesToStorageBuffer | ( | ) | const |
Get whether the shader program writes to a storage buffer.