score::gfx::ShaderCache Struct Reference

Cache of baked QShader instances. More...

Detailed Description

Cache of baked QShader instances.

Static Public Member Functions

static const std::pair< QShader, QString > & get (const RenderState &v, const QByteArray &shader, QShader::Stage stage)
 Get a QShader from a source string. More...
 
static const std::pair< QShader, QString > & get (GraphicsApi api, const QShaderVersion &v, const QByteArray &shader, QShader::Stage stage)
 

Member Function Documentation

◆ get()

const std::pair< QShader, QString > & score::gfx::ShaderCache::get ( const RenderState v,
const QByteArray &  shader,
QShader::Stage  stage 
)
static

Get a QShader from a source string.

Returns
If there is an error message, it will be in the QString part of the pair.

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