|
TachyonUI 1.1.0
High-performance UI for building tools.
|
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 |
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).
| uint2 tachyon::ViewportRenderContext::size {} |
pixels
| float4x4 tachyon::ViewportRenderContext::view |
| float4x4 tachyon::ViewportRenderContext::projection |
| ScenePayload tachyon::ViewportRenderContext::scene |