Foundation
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
Context.hpp File Reference
#include <Core/AllocatorStack.hpp>
#include <Core/JobSystem.hpp>
#include <RenderCore/Renderer.hpp>
#include <RHICore/Surface.hpp>
#include <SDL3/SDL.h>

Go to the source code of this file.

Classes

struct  FContext
 
struct  FContext::WindowHDRState
 
struct  FContext::RendererSettings
 

Namespaces

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

Functions

bool UpdateWindowHDRState (FContext *context)
 
void UpdateSwapchain (FContext *context)
 
void ResetEditorFrameScratch (FContext *context)
 
void DestroyEditorRenderer (FContext *context=nullptr)
 
FContextCreateContext (SDL_Window *window, Allocator *allocator=GLOBAL_ALLOC, RHIDevice::DeviceDesc const &deviceDesc={})
 
void DestroyContext (FContext *context=nullptr)
 

Variables

static constexpr size_t kEditorFrameScratchSize = 4 << 20
 
FContextGContext
 

Function Documentation

◆ CreateContext()

FContext * CreateContext ( SDL_Window *  window,
Allocator allocator = GLOBAL_ALLOC,
RHIDevice::DeviceDesc const &  deviceDesc = {} 
)
extern

◆ DestroyContext()

void DestroyContext ( FContext context = nullptr)
extern

◆ DestroyEditorRenderer()

void DestroyEditorRenderer ( FContext context = nullptr)
extern

◆ ResetEditorFrameScratch()

void ResetEditorFrameScratch ( FContext context)
extern

◆ UpdateSwapchain()

void UpdateSwapchain ( FContext context)
extern

◆ UpdateWindowHDRState()

bool UpdateWindowHDRState ( FContext context)
extern

Variable Documentation

◆ GContext

FContext* GContext
extern

◆ kEditorFrameScratchSize

constexpr size_t kEditorFrameScratchSize = 4 << 20
staticconstexpr