Class ShaderCacheManager
Shaders cache manager.
Inheritance
ShaderCacheManager
Assembly: FlaxEngine.dll
File: Engine/Graphics/Shaders/Cache/ShaderCacheManager.h
Syntax
public class ShaderCacheManager
Methods
CopyCache(const Guid& dstId, const Guid& srcId)
Copies shader cache.
Declaration
public static void CopyCache(const Guid& dstId, const Guid& srcId)
Parameters
Guid
dstId
Destination shader ID |
Guid
srcId
Source shader ID |
GetCache(const ShaderProfile profile, const CachedEntryHandle& cachedEntry, BytesContainer& outputShaderCache)
Gets shader cache
Declaration
public static bool GetCache(const ShaderProfile profile, const CachedEntryHandle& cachedEntry, BytesContainer& outputShaderCache)
Parameters
ShaderProfile
profile
Shader Profile |
CachedEntryHandle
cachedEntry
Cached entry handle |
BytesContainer
outputShaderCache
Output data |
Returns
bool
True if cannot set cache data, otherwise false |
RemoveCache(const Guid& id)
Removes shader cache.
Declaration
public static void RemoveCache(const Guid& id)
Parameters
Guid
id
Shader ID |
RemoveCache(const ShaderProfile profile, const Guid& id)
Removes shader cache.
Declaration
public static void RemoveCache(const ShaderProfile profile, const Guid& id)
Parameters
ShaderProfile
profile
Shader Profile |
Guid
id
Shader ID |
SetCache(const ShaderProfile profile, const CachedEntryHandle& cachedEntry, MemoryWriteStream& inputShaderCache)
Sets shader cache
Declaration
public static bool SetCache(const ShaderProfile profile, const CachedEntryHandle& cachedEntry, MemoryWriteStream& inputShaderCache)
Parameters
ShaderProfile
profile
Shader Profile |
CachedEntryHandle
cachedEntry
Cached entry handle |
MemoryWriteStream
inputShaderCache
Input data |
Returns
bool
True if cannot set cache data, otherwise false |
TryGetEntry(const ShaderProfile profile, const Guid& id, CachedEntryHandle& cachedEntry)
Tries to get cached shader entry for a given shader
Declaration
public static bool TryGetEntry(const ShaderProfile profile, const Guid& id, CachedEntryHandle& cachedEntry)
Parameters
ShaderProfile
profile
Shader Profile |
Guid
id
Shader ID |
CachedEntryHandle
cachedEntry
Result entry if success |
Returns
bool
False if cannot get it, otherwise true |