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

What the app's onRender gets each frame: the target's size and the camera's matrices, the projection to the clip space of the scene's API (ToClipSpace). More...

#include <gui_controls/gui_viewport_types.h>

Public Attributes

uint2 size {}
 pixels
float4x4 view
float4x4 projection
ScenePayload scene

Detailed Description

What the app's onRender gets each frame: the target's size and the camera's matrices, the projection to the clip space of the scene's API (ToClipSpace).

The backend's own recording state is in scene: ask for the one you draw with (Vulkan: scene.As<vulkan::VulkanSceneRender>(), the command buffer and formats, the rendering begun; Direct3D 12: scene.As<d3d12::D3D12SceneRender>(), the command list with the targets set).

Member Data Documentation

◆ size

uint2 tachyon::ViewportRenderContext::size {}

pixels

◆ view

float4x4 tachyon::ViewportRenderContext::view

◆ projection

float4x4 tachyon::ViewportRenderContext::projection

◆ scene

ScenePayload tachyon::ViewportRenderContext::scene

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