Skip to content

LiteFX::Rendering::Backends::VulkanSwapChain::addTimingEvent

Adds a new timing event.

Synopsis

Declared in <litefx/backends/vulkan.hpp>

[[dllimport, dllexport]] virtual void addTimingEvent(SharedPtr<TimingEvent const> timingEvent) override;

Description

Note that registering a new timing event does invalidate previously registered events, i.e. they do not return meaningful time stamps for the next frame. Timing events should only be registered during application startup, before the first frame is rendered.

Return Value

A pointer with shared ownership to the newly created timing event instance.

Parameters

NameDescription
timingEventA pointer to the timing event instance.

See Also

registerTimingEvent