Byte code cache interface. More...
#include <BytecodeCache.h>
Public Member Functions | |
virtual bool DILIGENT_CALL_TYPE | Load (IDataBlob *pData)=0 |
Loads the cache data from the binary blob. | |
virtual void DILIGENT_CALL_TYPE | GetBytecode (const ShaderCreateInfo &ShaderCI, IDataBlob **ppByteCode)=0 |
Returns the byte code for the requested shader create parameters. | |
virtual void DILIGENT_CALL_TYPE | AddBytecode (const ShaderCreateInfo &ShaderCI, IDataBlob *pByteCode)=0 |
Adds the byte code to the cache. | |
virtual void DILIGENT_CALL_TYPE | RemoveBytecode (const ShaderCreateInfo &ShaderCI)=0 |
Removes the byte code from the cache. | |
virtual void DILIGENT_CALL_TYPE | Store (IDataBlob **ppDataBlob)=0 |
Writes the cache data to the binary data blob. | |
virtual void DILIGENT_CALL_TYPE | Clear ()=0 |
Clears the cache and resets it to default state. | |
![]() | |
virtual void DILIGENT_CALL_TYPE | QueryInterface (const INTERFACE_ID &IID, IObject **ppInterface)=0 |
Queries the specific interface. | |
virtual ReferenceCounterValueType DILIGENT_CALL_TYPE | AddRef ()=0 |
Increments the number of strong references by 1. | |
virtual ReferenceCounterValueType DILIGENT_CALL_TYPE | Release ()=0 |
virtual IReferenceCounters *DILIGENT_CALL_TYPE | GetReferenceCounters () const =0 |
Byte code cache interface.
|
pure virtual |
Adds the byte code to the cache.
[in] | ShaderCI | - Shader create parameters for the byte code to add. |
[in] | pByteCode | - A pointer to the byte code to add to the cache. |
|
pure virtual |
Returns the byte code for the requested shader create parameters.
[in] | ShaderCI | - Shader create info to find the byte code for. |
[out] | ppByteCode | - Address of the memory location where a pointer to the data blob containing the byte code will be written. The function calls AddRef(), so that the new object will have one reference. |
|
pure virtual |
Loads the cache data from the binary blob.
[in] | pData | - A pointer to the cache data. |
|
pure virtual |
Removes the byte code from the cache.
[in] | ShaderCI | - Shader create information for the byte code to remove. |
|
pure virtual |
Writes the cache data to the binary data blob.
[out] | ppDataBlob | - Address of the memory location where a pointer to the data blob containing the cache data will be written. The function calls AddRef(), so that the new object will have one reference. |