Axmol 3.0.0-89d6d9a
Loading...
Searching...
No Matches
ShaderCache Class Reference

Create and reuse shader module. More...

#include <ShaderCache.h>

Public Member Functions

void removeAllShaders ()
 purges the cache.
rhi::ShaderModule * acquireVertexShaderModule (Data &payload)
 Create a vertex shader module and add it to cache.
rhi::ShaderModule * acquireFragmentShaderModule (Data &payload)
 Create a fragment shader module.
void removeUnusedShader ()
 Remove all unused shaders.

Detailed Description

Create and reuse shader module.

Member Function Documentation

◆ removeAllShaders()

void removeAllShaders ( )

purges the cache.

It releases the retained instance.

◆ acquireVertexShaderModule()

rhi::ShaderModule * acquireVertexShaderModule ( Data & payload)

Create a vertex shader module and add it to cache.

If it is created before, then just return the cached shader module.

Parameters
payloadThe shader payload with reflected information.

◆ acquireFragmentShaderModule()

rhi::ShaderModule * acquireFragmentShaderModule ( Data & payload)

Create a fragment shader module.

If it is created before, then just return the cached shader module.

Parameters
payloadThe shader payload with reflected information.

The documentation for this class was generated from the following file:
  • ShaderCache.h