Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promote v0 to v1, extend v1 and extend GpuApi #178

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix naming in Render
  • Loading branch information
WSSDude committed Feb 2, 2025
commit d66f1018a1dc3a14a02e1a23b1a5d42b61981b26
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