8#include "system/render/data/camera_data.h"
9#include "system/render/data/light_data.h"
10#include "system/render/data/planar_reflector_data.h"
11#include "system/render/data/probe_data.h"
12#include "system/render/data/render_objects.h"
13#include "system/render/data/decal_data.h"
14#include "system/render/data/particle_data.h"
15#include "system/render/data/irradiance_volume_data.h"
16#include "system/ocean/ocean_data.h"
17#include "system/render/render_settings.h"
18#include "system/splash/splash_frame.h"
19#include "system/ui/ui_draw_data.h"
20#include "ecs/environment.h"
21#include "resource/asset/texture_asset.h"
23namespace Vkm::Engine {
44 uint32_t viewportY = 0;
45 uint32_t viewportWidth = 0;
46 uint32_t viewportHeight = 0;
74 std::vector<ProbeData> probes;
95 bool hasIrradianceVolume =
false;
148 uint32_t
sceneWidth()
const {
return settings.sceneExtent(viewportWidth); }
151 uint32_t
sceneHeight()
const {
return settings.sceneExtent(viewportHeight); }
Every rig's pose for one frame, published on FrameContext::poses.
Definition pose_buffer.h:47
Central registry managing entities and an open set of component types.
Definition scene.h:29
Flattened camera for the frame.
Definition camera_data.h:10
The scene's lighting environment: sky, night sky and fog.
Definition environment.h:137
Flattened irradiance volume for the frame (see GLIrradianceVolume).
Definition irradiance_volume_data.h:12
Every emitter's live particles: ParticleSystem's per-frame product.
Definition live_particles.h:36
The scene's sea at the moment being computed (OceanSystem): its waves, its ripples and its look - wha...
Definition ocean_data.h:13
Every object the frame can draw, written once by the cull, and the lists of what each reader draws.
Definition render_objects.h:59
Editable render tuning: pass toggles + per-effect parameters.
Definition render_settings.h:101
The backend-agnostic view of the frame handed to RenderBackend::render.
Definition render_view.h:41
uint32_t sceneWidth() const
The scene's width in pixels: the viewport's at settings.renderScale.
Definition render_view.h:148
bool hasCamera
Whether a camera resolved this frame.
Definition render_view.h:64
std::vector< ParticleStrip > stripsAlpha
Unsorted; the backend orders them.
Definition render_view.h:82
std::vector< LightData > lights
The enabled ones, in world space.
Definition render_view.h:73
OceanData ocean
The scene's sea at the frame's moment (OceanSystem); not present without a camera.
Definition render_view.h:98
std::vector< TextureHandle > particleTextures
Definition render_view.h:87
std::vector< PlanarReflectorData > planarReflectors
The enabled ones; the backend picks.
Definition render_view.h:75
const RenderObjects * objects
Every object the frame can draw, and the lists naming which each reader draws.
Definition render_view.h:71
uint64_t worldEpoch
Scene::epoch() at build time: which world these items came from.
Definition render_view.h:119
Environment environment
Sky, night sky and fog.
Definition render_view.h:109
std::vector< ParticleData > particlesAdditive
Order-independent.
Definition render_view.h:77
uint32_t surfaceWidth
Full backbuffer width.
Definition render_view.h:47
std::vector< DecalData > decals
Every enabled one in the scene: not culled to the camera.
Definition render_view.h:76
CameraData camera
The view Visibility culled for: the scene's camera or a host's.
Definition render_view.h:57
IrradianceVolumeData irradianceVolume
The scene's baked-GI volume, meaningful while hasIrradianceVolume.
Definition render_view.h:94
std::vector< StripPoint > stripPoints
Every strip's points, a strip's together.
Definition render_view.h:80
uint32_t surfaceHeight
Full backbuffer height.
Definition render_view.h:48
std::vector< ParticleStrip > stripsDistortion
Unsorted; the backend orders them.
Definition render_view.h:83
void build(const Scene &scene, const Visibility &visibility, const UIDrawData *ui, const SplashFrame *splash, const PoseBuffer *poses, const LiveParticles *particles, const OceanData *ocean)
Refill the view for the current frame.
const UIDrawData * ui
Borrowed; null when the UISystem has not run.
Definition render_view.h:110
float frameSeconds
Definition render_view.h:52
uint32_t sceneHeight() const
The scene's height in pixels: the viewport's at settings.renderScale.
Definition render_view.h:151
const std::vector< glm::mat4 > * skinMatrices
The frame's bone palettes: PoseBuffer::palette(), borrowed whole.
Definition render_view.h:106
double worldSeconds
The world's clock, as NetSession::worldTime gives it: what a flickering light wavers by.
Definition render_view.h:55
std::vector< ParticleStrip > stripsAdditive
Ribbons and trails; order-independent.
Definition render_view.h:81
uint32_t viewportX
Viewport rect within the backbuffer, top-left origin (surfaceHeight flips it).
Definition render_view.h:43
SplashFrame splash
The startup logo, or nothing once it is over.
Definition render_view.h:111
std::vector< ParticleData > particlesAlpha
Unsorted; the backend orders them.
Definition render_view.h:78
std::vector< ParticleData > particlesDistortion
Unsorted; the backend orders them.
Definition render_view.h:79
What the splash looks like this frame, or nothing; SplashSystem's product.
Definition splash_frame.h:13
The backend-agnostic UI overlay for one frame, published on FrameContext::ui.
Definition ui_draw_data.h:58
VisibilitySystem's per-frame product: camera data, every scene mesh, and which of them the camera see...
Definition visibility.h:15