|
32 | 32 |
|
33 | 33 | #include "../../../Primitives/interface/Object.h" |
34 | 34 | #include "../../../Primitives/interface/DebugOutput.h" |
| 35 | +#include "../../../Primitives/interface/DataBlob.h" |
35 | 36 | #include "GraphicsTypes.h" |
36 | 37 |
|
37 | 38 |
|
@@ -82,6 +83,17 @@ DILIGENT_BEGIN_INTERFACE(IEngineFactory, IObject) |
82 | 83 | const Char* SearchDirectories, |
83 | 84 | struct IShaderSourceInputStreamFactory** ppShaderSourceFactory) CONST PURE; |
84 | 85 |
|
| 86 | + /// Creates a data blob. |
| 87 | + |
| 88 | + /// \param [in] InitialSize - The size of the internal data buffer. |
| 89 | + /// \param [in] pData - Pointer to the data to write to the internal buffer. |
| 90 | + /// If null, no data will be written. |
| 91 | + /// \param [out] ppDataBlob - Memory address where the pointer to the data blob will be written. |
| 92 | + VIRTUAL void METHOD(CreateDataBlob)(THIS_ |
| 93 | + size_t InitialSize, |
| 94 | + const void* pData, |
| 95 | + IDataBlob** ppDataBlob) CONST PURE; |
| 96 | + |
85 | 97 | /// Enumerates adapters available on this machine. |
86 | 98 |
|
87 | 99 | /// \param [in] MinVersion - Minimum required API version (feature level for Direct3D). |
@@ -147,6 +159,7 @@ DILIGENT_END_INTERFACE |
147 | 159 |
|
148 | 160 | # define IEngineFactory_GetAPIInfo(This) CALL_IFACE_METHOD(EngineFactory, GetAPIInfo, This) |
149 | 161 | # define IEngineFactory_CreateDefaultShaderSourceStreamFactory(This, ...) CALL_IFACE_METHOD(EngineFactory, CreateDefaultShaderSourceStreamFactory, This, __VA_ARGS__) |
| 162 | +# define IEngineFactory_CreateDataBlob(This, ...) CALL_IFACE_METHOD(EngineFactory, CreateDataBlob, This, __VA_ARGS__) |
150 | 163 | # define IEngineFactory_EnumerateAdapters(This, ...) CALL_IFACE_METHOD(EngineFactory, EnumerateAdapters, This, __VA_ARGS__) |
151 | 164 | # define IEngineFactory_InitAndroidFileSystem(This, ...) CALL_IFACE_METHOD(EngineFactory, InitAndroidFileSystem, This, __VA_ARGS__) |
152 | 165 | # define IEngineFactory_CreateDearchiver(This, ...) CALL_IFACE_METHOD(EngineFactory, CreateDearchiver, This, __VA_ARGS__) |
|
0 commit comments