Shader load info. More...
#include <RenderStateNotationLoader.h>
Public Attributes | |
const Char * | Name = nullptr |
Name of the shader to load. | |
bool | AddToCache = true |
Flag indicating whether to add the shader to the internal cache. | |
bool | LookupInCache = true |
Indicates whether to look up the shader in the cache. | |
void(* | Modify )(ShaderCreateInfo &, void *) = nullptr |
void * | pUserData = nullptr |
A pointer to the user data to pass to the Modify function. | |
Shader load info.
bool Diligent::LoadShaderInfo::LookupInCache = true |
Indicates whether to look up the shader in the cache.
If the shader with the specified name has already been requested, and the AddToCache
flag was set to true
, the shader will be returned from the cache, unless the LookupInCache
flag is set to false
.
Disabling cache lookup may be useful when the shader with the same name is already in the cache, but the application wants to load a different shader with the same name by modifying the shader create info.
If LookupInCache
is false
, and AddToCache
is true, the new shader will replace the existing shader in the cache, if any.
void(* Diligent::LoadShaderInfo::Modify) (ShaderCreateInfo &, void *) = nullptr |
An optional function to be called by the render state notation loader to let the application modify the shader create info.