Skip to content

Commit

Permalink
Fix naming in Render
Browse files Browse the repository at this point in the history
  • Loading branch information
WSSDude committed Feb 2, 2025
1 parent 4c6dc7b commit d66f101
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions include/RED4ext/Api/v1/Render.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ struct Render
* being used. Failing to do so may leak resources or cause premature removal of memory which is actively in use by
* the GPU!
*/
bool (*OnBeforeResizeBuffers)(uint32_t aRenderWidth, uint32_t aRenderHeight, int32_t aMonitorIndex,
RED4ext::GpuApi::EHdrMode aHdrMode, GpuApi::SSwapChainData& aSwapChainData);
bool (*OnBeforeResizeBackbuffer)(uint32_t aRenderWidth, uint32_t aRenderHeight, int32_t aMonitorIndex,
GpuApi::EHdrMode aHdrMode, GpuApi::SSwapChainData& aSwapChainData);

/**
* @brief The function that is called when the buffers inside a swapchain need to be resized, after original
Expand All @@ -94,8 +94,8 @@ struct Render
* being used. Failing to do so may leak resources or cause premature removal of memory which is actively in use by
* the GPU!
*/
bool (*OnAfterResizeBuffers)(uint32_t aRenderWidth, uint32_t aRenderHeight, int32_t aMonitorIndex,
RED4ext::GpuApi::EHdrMode aHdrMode, GpuApi::SSwapChainData& aSwapChainData);
bool (*OnAfterResizeBackbuffer)(uint32_t aRenderWidth, uint32_t aRenderHeight, int32_t aMonitorIndex,
GpuApi::EHdrMode aHdrMode, GpuApi::SSwapChainData& aSwapChainData);

/**
* @brief The function that is called when the latest frame is ready to be presented to the GPU, before original
Expand Down
2 changes: 1 addition & 1 deletion include/RED4ext/Api/v1/Rendering.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct Rendering
*
* @return True if the rendering hook is added successfully, false otherwise.
*/
bool (*AddHook)(PluginHandle aHandle, const Render* aRender);
bool (*AddHook)(PluginHandle aHandle, const Render& aRender);
};
} // namespace v1
} // namespace RED4ext

0 comments on commit d66f101

Please sign in to comment.