Jaanus Varus
Jaanus Varus

Reputation: 3573

Means for calling back from Vulkan to host application

Since Vulkan doesn't expose an async API, what are the alternatives for calling back from Vulkan to host application?

For example, let's say Vulkan is used to submit a single long-running compute task. How to notify the host once the task finishes without having to hold up a CPU thread on vkQueueWaitIdle or vkWaitForFences?

Upvotes: 2

Views: 539

Answers (1)

krOoze
krOoze

Reputation: 13246

You can also query the Fence state (non-blockingly) with vkGetFenceStatus().

If you want some other high-level construct like signal-slot or event message queue or even just a callback, you should be able to create it yourself from the provided Vulkan API.

Upvotes: 1

Related Questions