Axmol Engine 2.4.0-258ceca
|
Create and reuse shader module. More...
#include <ShaderCache.h>
Public Member Functions | |
void | purge () |
purges the cache. | |
backend::ShaderModule * | newVertexShaderModule (std::string_view shaderSource) |
Create a vertex shader module and add it to cache. | |
backend::ShaderModule * | newFragmentShaderModule (std::string_view shaderSource) |
Create a fragment shader module. | |
void | removeUnusedShader () |
Remove all unused shaders. | |
Create and reuse shader module.
void purge | ( | ) |
purges the cache.
It releases the retained instance.
backend::ShaderModule * newVertexShaderModule | ( | std::string_view | shaderSource | ) |
Create a vertex shader module and add it to cache.
If it is created before, then just return the cached shader module.
shaderSource | The source code of the shader. |
backend::ShaderModule * newFragmentShaderModule | ( | std::string_view | shaderSource | ) |
Create a fragment shader module.
If it is created before, then just return the cached shader module.
shaderSource | The source code of the shader. |