From 89011953cd4a4743dca377e541ebbdd61de6db65 Mon Sep 17 00:00:00 2001 From: Reiko Asakura Date: Wed, 4 Nov 2020 20:42:28 -0500 Subject: Add prototype sceGxmCheckMappedMemory --- include/user/gxm/memory.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/include/user/gxm/memory.h b/include/user/gxm/memory.h index fb33636..de0cb34 100644 --- a/include/user/gxm/memory.h +++ b/include/user/gxm/memory.h @@ -12,6 +12,27 @@ extern "C" { #endif // def __cplusplus +/** Checks if memory is mapped for GPU usage. If mapped, pointers within the region of + memory described by base and size may be used with libgxm + functions directly. + + @param[in] base The base address of the region to check. + @param[in] size The size in bytes of the region to check. + @param[in] attribs Bitwise combined attributes from #SceGxmMemoryAttribFlags. + + @retval + SCE_OK The memory region is mapped with attribs. + @retval + SCE_GXM_ERROR_UNINITIALIZED The operation failed because the library was not initialized. + @retval + SCE_GXM_ERROR_DRIVER The operation failed due to a driver error. + @retval + SCE_GXM_ERROR_INVALID_MAPPING The memory region is not mapped with attribs. + + @ingroup render +*/ +SceGxmErrorCode sceGxmCheckMappedMemory(void *base, uint32_t size, uint32_t attribs); + /** Maps memory for vertex USSE code usage. If successful, this mapping operation returns a USSE offset to address the memory as vertex USSE code. -- cgit v1.2.3