9 #ifndef RAMSES_RENDERERAPI_BINARYSHADERCACHE_H
10 #define RAMSES_RENDERERAPI_BINARYSHADERCACHE_H
139 class BinaryShaderCacheImpl&
impl;
#define RAMSES_API
Definition: APIExport.h:35
Provide default implementation for IBinaryShaderCache interface, to be used in RamsesRenderer by sett...
Definition: BinaryShaderCache.h:21
virtual void binaryShaderUploaded(effectId_t effectId, bool success) const override
Used by RamsesRenderer to provide a callback with information on the result of a binary shader upload...
virtual void getBinaryShaderData(effectId_t effectId, uint8_t *buffer, uint32_t bufferSize) const override
Get the binary shader data for the Effect with the given Effect Id.
virtual binaryShaderFormatId_t getBinaryShaderFormat(effectId_t effectId) const override
Get the binary shader format for the Effect with the given Effect Id.
virtual void storeBinaryShader(effectId_t effectId, sceneId_t sceneId, const uint8_t *binaryShaderData, uint32_t binaryShaderDataSize, binaryShaderFormatId_t binaryShaderFormat) override
Store the binary shader into the cache.
class BinaryShaderCacheImpl & impl
Definition: BinaryShaderCache.h:139
BinaryShaderCache & operator=(const BinaryShaderCache &other)=delete
Deleted copy assignment.
virtual void deviceSupportsBinaryShaderFormats(const binaryShaderFormatId_t *supportedFormats, uint32_t numSupportedFormats) override
Provides a list of binary shader formats supported by the device in use. The cache implementation sho...
virtual ~BinaryShaderCache() override
Destructor of IBinaryShaderCache.
virtual bool hasBinaryShader(effectId_t effectId) const override
Check if the cache contains the binary shader for the Effect with the given Effect Id.
virtual bool shouldBinaryShaderBeCached(effectId_t effectId, sceneId_t sceneId) const override
Returns for a specific effect whether it should be cached.
virtual uint32_t getBinaryShaderSize(effectId_t effectId) const override
Get the binary shader size in bytes for the Effect with the given Effect Id.
BinaryShaderCache()
Default Constructor.
BinaryShaderCache(const BinaryShaderCache &other)=delete
Deleted copy constructor.
void saveToFile(const char *filePath) const
Save all binary shaders in the cache to the file with the given path.
bool loadFromFile(const char *filePath)
Load all binary shaders from the file with the given path.
An interface used to exchange Binary Shader Cache with the RamsesRenderer. The RamsesRenderer will no...
Definition: IBinaryShaderCache.h:72
Helper class to create strongly typed values out of various types.
Definition: StronglyTypedValue.h:23
The RAMSES namespace contains all client side objects and functions used to implement RAMSES applicat...
Definition: AnimatedProperty.h:15
Resource identifier used to refer to a resource on the renderer.
Definition: Types.h:33