Dearchiver interface. More...
#include <Dearchiver.h>
Public Member Functions | |
virtual Bool DILIGENT_CALL_TYPE | LoadArchive (const IDataBlob *pArchive, Uint32 ContentVersion=~0u, Bool MakeCopy=false)=0 |
Lodas a device object archive. | |
virtual void DILIGENT_CALL_TYPE | UnpackShader (const ShaderUnpackInfo &UnpackInfo, IShader **ppShader)=0 |
Unpacks a shader from the device object archive. | |
virtual void DILIGENT_CALL_TYPE | UnpackPipelineState (const PipelineStateUnpackInfo &UnpackInfo, IPipelineState **ppPSO)=0 |
Unpacks a pipeline state object from the device object archive. | |
virtual void DILIGENT_CALL_TYPE | UnpackResourceSignature (const ResourceSignatureUnpackInfo &UnpackInfo, IPipelineResourceSignature **ppSignature)=0 |
Unpacks resource signature from the device object archive. | |
virtual void DILIGENT_CALL_TYPE | UnpackRenderPass (const RenderPassUnpackInfo &UnpackInfo, IRenderPass **ppRP)=0 |
Unpacks render pass from the device object archive. | |
virtual Bool DILIGENT_CALL_TYPE | Store (IDataBlob **ppArchive) const =0 |
Writes archive data to the data blob. | |
virtual void DILIGENT_CALL_TYPE | Reset ()=0 |
virtual Uint32 DILIGENT_CALL_TYPE | GetContentVersion () const =0 |
![]() | |
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 |
Dearchiver interface.
|
pure virtual |
Returns the content version of the archive. If no data has been loaded, returns ~0u (aka 0xFFFFFFFF).
|
pure virtual |
Lodas a device object archive.
[in] | pArchive | - A pointer to the source raw data to load objects from. |
[in] | ContentVersion | - The expected version of the content in the archive. If the version of the content in the archive does not match the expected version, the method will fail. If default value is used (~0u aka 0xFFFFFFFF), the version will not be checked. |
[in] | MakeCopy | - Whether to make a copy of the archive, or use the the original contents. |
|
pure virtual |
Resets the dearchiver state and releases all loaded objects.
|
pure virtual |
Writes archive data to the data blob.
[in] | ppArchive | - Memory location where a pointer to the archive data blob will be written. |
|
pure virtual |
Unpacks a pipeline state object from the device object archive.
[in] | UnpackInfo | - Pipeline state unpack info, see Diligent::PipelineStateUnpackInfo. |
[out] | ppPSO | - Address of the memory location where a pointer to the unpacked pipeline state object will be stored. The function calls AddRef(), so that the PSO will have one reference. |
|
pure virtual |
Unpacks render pass from the device object archive.
[in] | UnpackInfo | - Render pass unpack info, see Diligent::RenderPassUnpackInfo. |
[out] | ppSignature | - Address of the memory location where a pointer to the unpacked render pass object will be stored. The function calls AddRef(), so that the render pass will have one reference. |
|
pure virtual |
Unpacks resource signature from the device object archive.
[in] | UnpackInfo | - Resource signature unpack info, see Diligent::ResourceSignatureUnpackInfo. |
[out] | ppSignature | - Address of the memory location where a pointer to the unpacked pipeline resource signature object will be stored. The function calls AddRef(), so that the resource signature will have one reference. |
|
pure virtual |
Unpacks a shader from the device object archive.
[in] | UnpackInfo | - Shader unpack info, see Diligent::ShaderUnpackInfo. |
[out] | ppShader | - Address of the memory location where a pointer to the unpacked shader object will be stored. The function calls AddRef(), so that the shader object will have one reference. |