mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
More progress
This commit is contained in:
1 parent
4ddca8607f
commit
cfbecf5071
18 files changed
+320
-426
No files matched your search
@@ -100,7 +100,7 @@ const char *ObjTypeToString(VkDebugReportObjectTypeEXT type) {
|
||||
}
|
||||
|
||||
static VkBool32 VKAPI_CALL Vulkan_Dbg(VkDebugReportFlagsEXT msgFlags, VkDebugReportObjectTypeEXT objType, uint64_t srcObject, size_t location, int32_t msgCode, const char* pLayerPrefix, const char* pMsg, void *pUserData) {
|
||||
VulkanLogOptions *options = (VulkanLogOptions *)pUserData;
|
||||
const VulkanLogOptions *options = (const VulkanLogOptions *)pUserData;
|
||||
std::ostringstream message;
|
||||
|
||||
if (msgFlags & VK_DEBUG_REPORT_ERROR_BIT_EXT) {
|
||||
@@ -167,16 +167,10 @@ bool WindowsVulkanContext::Init(HINSTANCE hInst, HWND hWnd, std::string *error_m
|
||||
|
||||
_CrtCheckMemory();
|
||||
|
||||
VkClearValue clearVal[2];
|
||||
memset(clearVal, 0, sizeof(clearVal));
|
||||
clearVal[0].color.float32[0] = 0.5f;
|
||||
g_Vulkan->BeginSurfaceRenderPass(clearVal);
|
||||
return true;
|
||||
}
|
||||
|
||||
void WindowsVulkanContext::Shutdown() {
|
||||
g_Vulkan->EndSurfaceRenderPass();
|
||||
|
||||
g_Vulkan->DestroyObjects();
|
||||
g_Vulkan->DestroyDebugMsgCallback();
|
||||
g_Vulkan->DestroyDevice();
|
||||
@@ -191,12 +185,6 @@ Thin3DContext *WindowsVulkanContext::CreateThin3DContext() {
|
||||
}
|
||||
|
||||
void WindowsVulkanContext::SwapBuffers() {
|
||||
g_Vulkan->EndSurfaceRenderPass();
|
||||
|
||||
VkClearValue clearVal[2];
|
||||
memset(clearVal, 0, sizeof(clearVal));
|
||||
clearVal[0].color.float32[0] = 0.5f;
|
||||
g_Vulkan->BeginSurfaceRenderPass(clearVal);
|
||||
}
|
||||
|
||||
void WindowsVulkanContext::Resize() {
|
||||
|
||||
Reference in new issue
Block a user