Foundation
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions | Variables
EditorState.hpp File Reference
#include <algorithm>
#include <cmath>
#include <RenderCore/Presenter.hpp>
#include <Renderer/GPUScene.hpp>
#include <Renderer/Postprocess.hpp>
#include <Renderer/Rasterizer.hpp>
#include <Renderer/ProgressivePathtracer.hpp>
#include <Renderer/RealtimePathtracer.hpp>
#include <Renderer/Rasterizer/GTAO.hpp>
#include "Camera.hpp"
#include "Editor.hpp"
#include "Runtime/GPUScene.hpp"
#include "Runtime/Animation.hpp"
#include "Scene/Scene.hpp"
#include <RHICore/Swapchain.hpp>

Go to the source code of this file.

Classes

struct  RenderOutputState
 
struct  GizmoState
 
struct  CameraApertureState
 
struct  EditorViewportState
 
struct  EditorState
 

Namespaces

namespace  Foundation
 
namespace  Foundation::RenderCore
 Core functionalities for rendering, including the Frame Graph implementation.
 

Enumerations

enum class  ERendererMode { ProgressivePT = 0u , Raster = 1u , RealtimePT = 2u }
 
enum class  ERenderFormat { HDR , SDR }
 

Functions

constexpr bool IsPathTracer (ERendererMode mode)
 
constexpr bool IsProgressive (ERendererMode mode)
 
constexpr bool IsRaster (ERendererMode mode)
 
const char * RendererModeDisplayName (ERendererMode mode)
 
float ApertureRadiusFromFStop (float fStop, float sensorHeight, float fovY)
 
void CommitSceneToGPU (bool resetAccumulation=true)
 
void UpdateSceneLights ()
 
void DeleteSelectedInstance ()
 
void LoadScene (StringView path)
 
void RequestLoadScene (StringView path, StringView envMapPath={})
 
bool PollSceneLoad ()
 
void LoadEnvMap (StringView path)
 
bool ApplyViewLUTSelection ()
 
bool ApplyMatcapSelection ()
 
void HandleFile (const char *filePath)
 
void EditorDockSpaceAndMenuBar ()
 
int SceneInstanceIndexFromId (FUUID id)
 
int SceneLightIndexFromId (FUUID id)
 
int SceneMaterialIndexFromId (FUUID id)
 
bool IsSelectedInstanceValid ()
 
FSerializedBounds const * InstanceResourceBounds (FInstance const &instance)
 
void SelectInstance (FUUID instanceId, FUUID materialId)
 
void SelectLight (FUUID lightId)
 
void ClearSelection ()
 
void FHierarchyPanel ()
 
void FLightingPanel ()
 
void FRunningImGui ()
 
void ClearMaterialTexturePreviewCache ()
 
void DoRenderReadback (RendererOutputs const &outputs)
 
void FRendering (RendererOutputs const &outputs)
 
void CheckDeferredSceneLoad ()
 
RHISwapchainResult EditorBeginFrame (Renderer *renderer, Presenter *presenter)
 
RHISwapchainResult EditorEndFrame (Renderer *renderer, Presenter *presenter)
 
void RecreateEditorSwapchain ()
 

Variables

EditorState GEditor
 

Enumeration Type Documentation

◆ ERendererMode

enum class ERendererMode
strong
Enumerator
ProgressivePT 
Raster 
RealtimePT 

◆ ERenderFormat

enum class ERenderFormat
strong
Enumerator
HDR 
SDR 

Function Documentation

◆ ApertureRadiusFromFStop()

float ApertureRadiusFromFStop ( float  fStop,
float  sensorHeight,
float  fovY 
)
inline

◆ ApplyMatcapSelection()

bool ApplyMatcapSelection ( )

◆ ApplyViewLUTSelection()

bool ApplyViewLUTSelection ( )

◆ CheckDeferredSceneLoad()

void CheckDeferredSceneLoad ( )

◆ ClearMaterialTexturePreviewCache()

void ClearMaterialTexturePreviewCache ( )

◆ ClearSelection()

void ClearSelection ( )

◆ CommitSceneToGPU()

void CommitSceneToGPU ( bool  resetAccumulation = true)

◆ DeleteSelectedInstance()

void DeleteSelectedInstance ( )

◆ DoRenderReadback()

void DoRenderReadback ( RendererOutputs const &  outputs)

◆ EditorBeginFrame()

RHISwapchainResult EditorBeginFrame ( Renderer renderer,
Presenter presenter 
)

◆ EditorDockSpaceAndMenuBar()

void EditorDockSpaceAndMenuBar ( )

◆ EditorEndFrame()

RHISwapchainResult EditorEndFrame ( Renderer renderer,
Presenter presenter 
)

◆ FHierarchyPanel()

void FHierarchyPanel ( )

◆ FLightingPanel()

void FLightingPanel ( )

◆ FRendering()

void FRendering ( RendererOutputs const &  outputs)

◆ FRunningImGui()

void FRunningImGui ( )

◆ HandleFile()

void HandleFile ( const char *  filePath)

◆ InstanceResourceBounds()

FSerializedBounds const * InstanceResourceBounds ( FInstance const &  instance)

◆ IsPathTracer()

constexpr bool IsPathTracer ( ERendererMode  mode)
inlineconstexpr

◆ IsProgressive()

constexpr bool IsProgressive ( ERendererMode  mode)
inlineconstexpr

◆ IsRaster()

constexpr bool IsRaster ( ERendererMode  mode)
inlineconstexpr

◆ IsSelectedInstanceValid()

bool IsSelectedInstanceValid ( )

◆ LoadEnvMap()

void LoadEnvMap ( StringView  path)

◆ LoadScene()

void LoadScene ( StringView  path)

◆ PollSceneLoad()

bool PollSceneLoad ( )

◆ RecreateEditorSwapchain()

void RecreateEditorSwapchain ( )

◆ RendererModeDisplayName()

const char * RendererModeDisplayName ( ERendererMode  mode)
inline

◆ RequestLoadScene()

void RequestLoadScene ( StringView  path,
StringView  envMapPath = {} 
)

◆ SceneInstanceIndexFromId()

int SceneInstanceIndexFromId ( FUUID  id)

◆ SceneLightIndexFromId()

int SceneLightIndexFromId ( FUUID  id)

◆ SceneMaterialIndexFromId()

int SceneMaterialIndexFromId ( FUUID  id)

◆ SelectInstance()

void SelectInstance ( FUUID  instanceId,
FUUID  materialId 
)

◆ SelectLight()

void SelectLight ( FUUID  lightId)

◆ UpdateSceneLights()

void UpdateSceneLights ( )

Variable Documentation

◆ GEditor

EditorState GEditor
extern