TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::ScenePayload Class Reference

What GraphicsContext::RenderScene's record gets: the backend's recording state, as the struct of the API it renders with (Vulkan: a VulkanSceneRender). More...

#include <gui_core/graphics/gui_graphics_api.h>

Public Member Functions

 ScenePayload ()=default
template<class T>
 ScenePayload (const T &state)
GraphicsAPI API () const
template<class T>
const T * As () const

Detailed Description

What GraphicsContext::RenderScene's record gets: the backend's recording state, as the struct of the API it renders with (Vulkan: a VulkanSceneRender).

Ask for the one you draw with: As<T> returns it, or null when the scene is another API's. A state struct names its API as static constexpr GraphicsAPI kAPI.

Constructor & Destructor Documentation

◆ ScenePayload() [1/2]

tachyon::ScenePayload::ScenePayload ( )
default

◆ ScenePayload() [2/2]

template<class T>
tachyon::ScenePayload::ScenePayload ( const T & state)
inlineexplicit

Member Function Documentation

◆ API()

GraphicsAPI tachyon::ScenePayload::API ( ) const
inline

◆ As()

template<class T>
const T * tachyon::ScenePayload::As ( ) const
inline

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