KhronosGroup / KhronosGroup/Vulkan-Docs

Win32 WSI and SendMessage

Open
#2,290 2 comments 0 reactions 1 assignee Assigned to @nvlduc View on GitHub
System Integration
Dominant language
JavaScript
Stars
3.3k
Forks
549
Avg merge
5d 5h
Merged PRs (30d)
2

Description

> Some Vulkan functions may call the SendMessage system API when interacting with a VkSurfaceKHR through a VkSwapchainKHR. In a multithreaded environment, calling SendMessage from a thread that is not the thread associated with pCreateInfo::hwnd will block until the application has processed the window message. Thus, applications should either call these Vulkan functions on the message pump thread, or make sure their message pump is actively running. Failing to do so may result in deadlocks.

Is there an example of what win32 window message can be sent when calling vkCreateSwapchainKHR/vkQueuePresentKHR/vkAcquireNextImageKHR... and in what case?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.