Skip to content

Commit e7060d8

Browse files
Render state cache: implemented pipeline state reloading
1 parent fe9a2d3 commit e7060d8

File tree

4 files changed

+329
-43
lines changed

4 files changed

+329
-43
lines changed

Graphics/GraphicsTools/interface/RenderStateCache.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ DILIGENT_BEGIN_INTERFACE(IRenderStateCache, IObject)
191191
/// \param [in] ModifyReloadInfo - An optional callback function that will be called by the render state cache
192192
/// to let the application modify pipeline state create info before creating new
193193
/// pipeline.
194+
/// \param [in] pUserData - A pointer to user-specific data to pass to ModifyReloadInfo callback.
194195
///
195196
/// \return The total number of render states (shaders and pipelines) that were reloaded.
196197
///
@@ -201,7 +202,8 @@ DILIGENT_BEGIN_INTERFACE(IRenderStateCache, IObject)
201202
/// signatures. Its main use is to modify the graphics states of a graphics pipeline (blend state,
202203
/// rasterizer state, depth state, etc.).
203204
VIRTUAL Uint32 METHOD(Reload)(THIS_
204-
ModifyPipelineReloadInfoCallbackType ModifyReloadInfo DEFAULT_VALUE(nullptr)) PURE;
205+
ModifyPipelineReloadInfoCallbackType ModifyReloadInfo DEFAULT_VALUE(nullptr),
206+
void* pUserData DEFAULT_VALUE(nullptr)) PURE;
205207
};
206208
DILIGENT_END_INTERFACE
207209

0 commit comments

Comments
 (0)