Nameless Engine
Loading...
Searching...
No Matches
ne::ShaderCacheInvalidationReasonDescription Struct Reference

#include <ShaderDescription.h>

Static Public Member Functions

static const char * getDescription (ShaderCacheInvalidationReason reason)
 

Static Public Attributes

static const std::unordered_map< ShaderCacheInvalidationReason, const char * > cacheInvalidationReasons
 

Detailed Description

Maps ShaderCacheInvalidationReason to text description.

Member Function Documentation

◆ getDescription()

static const char * ne::ShaderCacheInvalidationReasonDescription::getDescription ( ShaderCacheInvalidationReason  reason)
inlinestatic

Returns description in form of text for the specified reason.

Parameters
reasonShader cache invalidation reason.
Returns
Reason description.

Member Data Documentation

◆ cacheInvalidationReasons

const std::unordered_map<ShaderCacheInvalidationReason, const char*> ne::ShaderCacheInvalidationReasonDescription::cacheInvalidationReasons
inlinestatic
Initial value:
= {
{ShaderCacheInvalidationReason::ENTRY_FUNCTION_NAME_CHANGED,
"shader entry function name changed"},
{ShaderCacheInvalidationReason::SHADER_TYPE_CHANGED, "shader type changed"},
{ShaderCacheInvalidationReason::DEFINED_SHADER_MACROS_CHANGED,
"defined shader macros changed"},
{ShaderCacheInvalidationReason::SHADER_SOURCE_FILE_CHANGED, "shader source file changed"},
{ShaderCacheInvalidationReason::SHADER_INCLUDE_TREE_CONTENT_CHANGED,
"shader include tree content changed"},
{ShaderCacheInvalidationReason::COMPILED_BINARY_CHANGED,
"previously compiled binary file(s) changed"}}

Map between ShaderCacheInvalidationReason and text description.


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