Render state object archiver interface. More...
#include <Archiver.h>
Public Member Functions | |
virtual Bool DILIGENT_CALL_TYPE | SerializeToBlob (Uint32 ContentVersion, IDataBlob **ppBlob)=0 |
Writes archive to a memory blob. | |
virtual Bool DILIGENT_CALL_TYPE | SerializeToStream (Uint32 ContentVersion, IFileStream *pStream)=0 |
Writes archive to a file stream. | |
virtual Bool DILIGENT_CALL_TYPE | AddShader (IShader *pShader)=0 |
Adds a shader to the archive. | |
virtual Bool DILIGENT_CALL_TYPE | AddPipelineState (IPipelineState *pPSO)=0 |
Adds a pipeline state to the archive. | |
virtual Bool DILIGENT_CALL_TYPE | AddPipelineResourceSignature (IPipelineResourceSignature *pSignature)=0 |
Adds a pipeline resource signature to the archive. | |
virtual void DILIGENT_CALL_TYPE | Reset ()=0 |
Resets the archiver to default state and removes all added resources. | |
virtual IShader *DILIGENT_CALL_TYPE | GetShader (const char *ShaderName)=0 |
Returns a pointer to the shader object previously added by the AddShader() method. | |
virtual IPipelineState *DILIGENT_CALL_TYPE | GetPipelineState (PIPELINE_TYPE PSOType, const char *PSOName)=0 |
Returns a pointer to the pipeline state object previously added by the AddPipelineState() method. | |
virtual IPipelineResourceSignature *DILIGENT_CALL_TYPE | GetPipelineResourceSignature (const char *PRSName)=0 |
Returns a pointer to the pipeline resource signature previously added by the AddPipelineResourceSignature() method. | |
![]() | |
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 |
Render state object archiver interface.
|
pure virtual |
Adds a pipeline resource signature to the archive.
[in] | pSignature | - a pointer to the resource signature to add to the archive. |
true
if the signature was added successfully, and false
otherwise.The method is thread-safe and may be called from multiple threads simultaneously.
|
pure virtual |
Adds a pipeline state to the archive.
[in] | pPSO | - a pointer to the pipeline state to add to the archive. |
true
if the pipeline state was added successfully, and false
otherwise.The method is thread-safe and may be called from multiple threads simultaneously.
Adds a shader to the archive.
[in] | pShader | - a pointer to the shader to add to the archive. |
true
if the shader was added successfully, and false
otherwise.The method is thread-safe and may be called from multiple threads simultaneously.
|
pure virtual |
Returns a pointer to the pipeline resource signature previously added by the AddPipelineResourceSignature() method.
[in] | PRSName | - Name of the pipeline resource signature to retrieve. |
|
pure virtual |
Returns a pointer to the pipeline state object previously added by the AddPipelineState() method.
[in] | PSOType | - Type of the pipeline state to retrieve. |
[in] | PSOName | - Name of the pipeline state to retrieve. |
|
pure virtual |
Returns a pointer to the shader object previously added by the AddShader() method.
[in] | ShaderName | - Name of the shader object to retrieve. |
|
pure virtual |
Writes archive to a memory blob.
[in] | ContentVersion | - user-provided content version that will be stored in the archive header. |
[out] | ppBlob | - memory location where a pointer to the data blob will be stored. |
|
pure virtual |
Writes archive to a file stream.
[in] | ContentVersion | - user-provided content version that will be stored in the archive header. |
[out] | pStream | - a pointer to the stream to write the archive to. |