From 0ccba597769c573bd69611f84f1ad2c484691b7d Mon Sep 17 00:00:00 2001 From: GrapheneCt Date: Fri, 15 Jan 2021 12:44:29 -0500 Subject: Add gxm and gpu internal functions --- include/user/gxm/context.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'include/user/gxm/context.h') diff --git a/include/user/gxm/context.h b/include/user/gxm/context.h index 06a35fe..3897677 100644 --- a/include/user/gxm/context.h +++ b/include/user/gxm/context.h @@ -75,6 +75,25 @@ SceGxmErrorCode sceGxmSetFragmentJobVisibilityBuffer( void *bufferBase, uint32_t stridePerCore); +/** Allocates a VDM buffer for Razor GPU Capture. + + @param[in] context A pointer to the rendering context. + @param[in] size The size to allocate. + @param[out] mem Receives the buffer address. + + @retval + SCE_OK The operation was successful. + @retval + SCE_GXM_ERROR_RESERVE_FAILED The operation failed due to the VDM buffer callback + function failing to provide sufficient memory. + + @ingroup render +*/ +SceGxmErrorCode sceGxmRazorReplayReserveVdm( + SceGxmContext *context, + uint32_t size, + void **mem); + #ifdef __cplusplus } #endif // def __cplusplus -- cgit v1.2.3