TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::vulkan::FrameWaits Struct Reference

Timeline semaphores the GUI's frame submissions wait on (VulkanGraphicsContext::AddFrameWait). More...

#include <gui_core/graphics/vulkan/vk_device_context.h>

Public Member Functions

void Add (VkSemaphore semaphore, uint64_t value, VkPipelineStageFlags2 stageMask)
 Waits for semaphore to reach value before stageMask.
std::span< const VkSemaphoreSubmitInfo > Waits () const
 What a submission waits on now.
void Submitted ()
 A submission waited on all of them.
void NextFrame ()
 A new frame: those submitted go, those added since stay.
void Clear ()
 All of them go (the device they were made on is going).

Detailed Description

Timeline semaphores the GUI's frame submissions wait on (VulkanGraphicsContext::AddFrameWait).

Every submission waits on all of them; the next frame drops those that were submitted.

Member Function Documentation

◆ Add()

void tachyon::vulkan::FrameWaits::Add ( VkSemaphore semaphore,
uint64_t value,
VkPipelineStageFlags2 stageMask )
inline

Waits for semaphore to reach value before stageMask.

Another wait on the same semaphore merges with it: the higher value, both stages. A null semaphore is ignored.

◆ Waits()

std::span< const VkSemaphoreSubmitInfo > tachyon::vulkan::FrameWaits::Waits ( ) const
inline

What a submission waits on now.

◆ Submitted()

void tachyon::vulkan::FrameWaits::Submitted ( )
inline

A submission waited on all of them.

◆ NextFrame()

void tachyon::vulkan::FrameWaits::NextFrame ( )
inline

A new frame: those submitted go, those added since stay.

◆ Clear()

void tachyon::vulkan::FrameWaits::Clear ( )
inline

All of them go (the device they were made on is going).


The documentation for this struct was generated from the following file: