[Improvement] (...): Log more info.

Signed-off-by: BZLZHH <admin@bzlzhh.top>
This commit is contained in:
BZLZHH
2025-03-15 20:49:39 +08:00
parent e9d5caab2a
commit a60bc2644d
8 changed files with 113 additions and 32 deletions
+20 -3
View File
@@ -7,8 +7,6 @@
#include "../../Includes.h"
#endif //MOBILEGL_MESAEMU_H
/*
* Mesa 3-D graphics library
*
@@ -340,4 +338,23 @@ OSMesaPostprocess(OSMesaContext osmesa, const char *filter,
#endif
#endif
#endif
struct OSMesaContextData {
VkInstance instance = VK_NULL_HANDLE;
VkPhysicalDevice physicalDevice = VK_NULL_HANDLE;
VkDevice device = VK_NULL_HANDLE;
VkQueue graphicsQueue = VK_NULL_HANDLE;
VkImage targetImage = VK_NULL_HANDLE;
VkImageView imageView = VK_NULL_HANDLE;
VkCommandPool commandPool = VK_NULL_HANDLE;
GLsizei currentWidth = 0;
GLsizei currentHeight = 0;
GLint packAlignment = 4;
GLubyte* frontBuffer = nullptr;
uint32_t queueFamilyIndex = 0;
};
static std::map<OSMesaContext, OSMesaContextData> ctxMap;
#endif //MOBILEGL_MESAEMU_H