[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
View File
@@ -6,26 +6,6 @@
// Code From DeepSeek
#include <vulkan/vulkan.h>
#include <cstring>
#include <map>
#include <vector>
#include <stdexcept>
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;
static thread_local OSMesaContext currentContext = nullptr;
static uint32_t findGraphicsQueueFamily(VkPhysicalDevice physicalDevice) {
uint32_t queueFamilyCount = 0;