![]() |
HoviTron Video Pipeline
|
Class that loads SPIR-V shader from files and make their content available to the rest of the code. More...
#include <Shader.h>
Public Member Functions | |
Shader const & | operator() (const char *name) const |
void | loadShaders () |
Static Public Member Functions | |
static ShadersList & | getInstance () |
Class that loads SPIR-V shader from files and make their content available to the rest of the code.
Class that loads SPIR-V shader from files and make their content available to the rest of the code. On desktop, files are expected to be located in a folder called "shader" placed near the executable In android, the shader are often located with the assets so the process is slightly modified to fit this platform ShaderList class is a singleton and will therefore only be created once.
|
static |
Return an instance of ShadersList
Definition at line 99 of file Shader.cpp.
void ShadersList::loadShaders | ( | ) |
Load the shaders defined in the private attribute "namesList" from the disk
Definition at line 68 of file Shader.cpp.
Shader const & ShadersList::operator() | ( | const char * | name | ) | const |
Allow to access the map containing the shaders using () operator
Definition at line 103 of file Shader.cpp.