From efc507147e0beb1ac5b2f046bf8e4d902bca652c Mon Sep 17 00:00:00 2001 From: Reiko Asakura Date: Wed, 23 Sep 2020 13:03:51 -0400 Subject: Refactor SceGxmInternal headers --- include/user/gxm/init.h | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 include/user/gxm/init.h (limited to 'include/user/gxm/init.h') diff --git a/include/user/gxm/init.h b/include/user/gxm/init.h new file mode 100644 index 0000000..6739e2a --- /dev/null +++ b/include/user/gxm/init.h @@ -0,0 +1,53 @@ +#ifndef _DOLCESDK_PSP2_GXM_INIT_INTERNAL_H_ +#define _DOLCESDK_PSP2_GXM_INIT_INTERNAL_H_ + +/** @file +*/ + +#include + +#ifdef __cplusplus +extern "C" { +#endif // def __cplusplus + +/** Initializes the libgxm library for shared sync objects. + + Internally this function will prepare this process for rendering, creating + the parameter buffer with the given size. + + This function must be called before any other libgxm object is created, such + as a context, or sync object. + + @param[in] params A pointer to a populated SceGxmInitializeParams structure. + + @retval + SCE_OK The operation completed successfully. + @retval + SCE_GXM_ERROR_INVALID_POINTER The SceGxmInitializeParams pointer was NULL. + @retval + SCE_GXM_ERROR_INVALID_VALUE One or more parameters were invalid. + @retval + SCE_GXM_ERROR_ALREADY_INITIALIZED The operation failed because libgxm is already initialized. + @retval + SCE_GXM_ERROR_OUT_OF_MEMORY There was no memory to perform the operation. + @retval + SCE_GXM_ERROR_DRIVER The operation failed due to a driver error. + + @ingroup render +*/ +SceGxmErrorCode sceGxmInitializeInternal(const SceGxmInitializeParams *params); + +/** Checks if the libgxm library was initialized for shared sync objects. + + @return + Returns true if the libgxm library was initialized for shared sync objects; otherwise false is returned. + + @ingroup render +*/ +bool sceGxmIsInitializedInternal(void); + +#ifdef __cplusplus +} +#endif // def __cplusplus + +#endif /* _DOLCESDK_PSP2_GXM_INIT_INTERNAL_H_ */ -- cgit v1.2.3