Render state cache create information. More...
#include <RenderStateCache.h>
Public Attributes | |
IRenderDevice * | pDevice = nullptr |
A pointer to the render device, must not be null. | |
struct IArchiverFactory * | pArchiverFactory = nullptr |
Archiver factory, must not be null. | |
RENDER_STATE_CACHE_LOG_LEVEL | LogLevel = RENDER_STATE_CACHE_LOG_LEVEL_NORMAL |
Logging level, see Diligent::RENDER_STATE_CACHE_LOG_LEVEL. | |
RENDER_STATE_CACHE_FILE_HASH_MODE | FileHashMode = RENDER_STATE_CACHE_FILE_HASH_MODE_BY_CONTENT |
Source file hash mode, see Diligent::RENDER_STATE_CACHE_FILE_HASH_MODE. | |
bool | EnableHotReload = false |
Whether to enable hot shader and pipeline state reloading. | |
bool | OptimizeGLShaders = true |
Whether to optimize OpenGL shaders. | |
IShaderSourceInputStreamFactory * | pReloadSource = nullptr |
Render state cache create information.
bool Diligent::RenderStateCacheCreateInfo::EnableHotReload = false |
Whether to enable hot shader and pipeline state reloading.
When enabled, the cache will support the Reload()
method that detects changes in the original shader source files and reloads the corresponding shaders and pipeline states.
Hot reloading requires that the file hash mode is Diligent::RENDER_STATE_CACHE_FILE_HASH_MODE_BY_CONTENT
.
bool Diligent::RenderStateCacheCreateInfo::OptimizeGLShaders = true |
Whether to optimize OpenGL shaders.
This option directly controls the value of the SerializationDeviceGLInfo::OptimizeShaders member of the internal serialization device.
struct IArchiverFactory* Diligent::RenderStateCacheCreateInfo::pArchiverFactory = nullptr |
Archiver factory, must not be null.
Use LoadAndGetArchiverFactory()
from ArchiverFactoryLoader.h
to create the factory.
IShaderSourceInputStreamFactory* Diligent::RenderStateCacheCreateInfo::pReloadSource = nullptr |
Optional shader source input stream factory to use when reloading shaders. If null, original source factory will be used.