LiteFX::Rendering::ISwapChain::addTimingEvent¶
Adds a new timing event.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] virtual void addTimingEvent(SharedPtr<TimingEvent const> timingEvent) = 0;
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¶
| Name | Description |
|---|---|
| timingEvent | A pointer to the timing event instance. |
See Also¶
registerTimingEvent