Skip to main content

SwapBuffersSystem Class Template

Emits SwapBuffersCommand for each active and shown window. More...

Declaration​

template <typename THandle, typename TCommandBuffer = NullCommandBuffer> class helios::engine::platform::window::systems::SwapBuffersSystem<THandle, TCommandBuffer> { ... }

Public Member Typedefs Index​

template <typename THandle, typename TCommandBuffer = NullCommandBuffer>
usingCommandBuffer_type = TCommandBuffer
template <typename THandle, typename TCommandBuffer = NullCommandBuffer>
usingEngineRoleTag = TypedSystemRole

Engine role marker used by runtime registries. More...

Public Member Functions Index​

template <typename THandle, typename TCommandBuffer = NullCommandBuffer>
voidupdate (UpdateContext &updateContext, TCommandBuffer &cmdBuffer) noexcept

Enqueues swap-buffer commands for the current frame. More...

Description​

Emits SwapBuffersCommand for each active and shown window.

Template Parameters
THandle

Window handle type.

Definition at line 45 of file SwapBuffersSystem.ixx.

Public Member Typedefs​

CommandBuffer_type​

template <typename THandle, typename TCommandBuffer = NullCommandBuffer>
using helios::engine::platform::window::systems::SwapBuffersSystem< THandle, TCommandBuffer >::CommandBuffer_type = TCommandBuffer

Definition at line 49 of file SwapBuffersSystem.ixx.

EngineRoleTag​

template <typename THandle, typename TCommandBuffer = NullCommandBuffer>
using helios::engine::platform::window::systems::SwapBuffersSystem< THandle, TCommandBuffer >::EngineRoleTag = TypedSystemRole

Engine role marker used by runtime registries.

Definition at line 54 of file SwapBuffersSystem.ixx.

Public Member Functions​

update()​

template <typename THandle, typename TCommandBuffer = NullCommandBuffer>
void helios::engine::platform::window::systems::SwapBuffersSystem< THandle, TCommandBuffer >::update (UpdateContext & updateContext, TCommandBuffer & cmdBuffer)
inline noexcept

Enqueues swap-buffer commands for the current frame.

Parameters
updateContext

Frame-local update context.

Definition at line 61 of file SwapBuffersSystem.ixx.

62
63 for (auto [entity, wc, wsc]: updateContext.view<
64 THandle,
67 >().withActive()) {
68
70 }
71
72 }

Reference helios::registerComponents.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.