Nebula
Loading...
Searching...
No Matches
Clustering::ClusterContext Class Reference

#include <clustercontext.h>

Inherits Graphics::GraphicsContext.

Public Member Functions

 ClusterContext ()
 constructor
 
virtual ~ClusterContext ()
 destructor
 
- Public Member Functions inherited from Graphics::GraphicsContext
 GraphicsContext ()
 constructor
 
virtual ~GraphicsContext ()
 destructor
 

Static Public Member Functions

static void Create (float ZNear, float ZFar, const CoreGraphics::WindowId window)
 setup light context using CameraSettings
 
static const SizeT GetNumClusters ()
 get number of clusters
 
static const std::array< SizeT, 3 > GetClusterDimensions ()
 get cluster dimensions
 
static void UpdateResources (const Graphics::FrameContext &ctx)
 update constants
 
static void OnRenderDebug (uint32_t flags)
 implement me
 
static void WindowResized (const CoreGraphics::WindowId id, SizeT width, SizeT height)
 Update when window resized.
 
static const CoreGraphics::BufferIdGetClusterBuffer ()
 Get cluster AABB buffer.
 

Private Member Functions

 __DeclarePluginContext ()
 

Static Private Member Functions

static void UpdateClusters ()
 run light classification compute
 

Additional Inherited Members

- Static Protected Member Functions inherited from Graphics::GraphicsContext
static void InternalRegisterEntity (const Graphics::GraphicsEntityId id, Graphics::GraphicsContextState &&state)
 
static void InternalDeregisterEntity (const Graphics::GraphicsEntityId id, Graphics::GraphicsContextState &&state)
 
template<class ID_ALLOCATOR >
static void InternalDefragment (ID_ALLOCATOR &allocator, Graphics::GraphicsContextState &&state)
 

Constructor & Destructor Documentation

◆ ClusterContext()

Clustering::ClusterContext::ClusterContext ( )

constructor

◆ ~ClusterContext()

Clustering::ClusterContext::~ClusterContext ( )
virtual

destructor

Member Function Documentation

◆ __DeclarePluginContext()

Clustering::ClusterContext::__DeclarePluginContext ( )
private

◆ Create()

void Clustering::ClusterContext::Create ( float ZNear,
float ZFar,
const CoreGraphics::WindowId window )
static

setup light context using CameraSettings

◆ GetClusterBuffer()

const CoreGraphics::BufferId * Clustering::ClusterContext::GetClusterBuffer ( )
static

Get cluster AABB buffer.

◆ GetClusterDimensions()

const std::array< SizeT, 3 > Clustering::ClusterContext::GetClusterDimensions ( )
static

get cluster dimensions

◆ GetNumClusters()

const SizeT Clustering::ClusterContext::GetNumClusters ( )
static

get number of clusters

◆ OnRenderDebug()

void Clustering::ClusterContext::OnRenderDebug ( uint32_t flags)
static

implement me

◆ UpdateClusters()

static void Clustering::ClusterContext::UpdateClusters ( )
staticprivate

run light classification compute

◆ UpdateResources()

void Clustering::ClusterContext::UpdateResources ( const Graphics::FrameContext & ctx)
static

update constants

◆ WindowResized()

void Clustering::ClusterContext::WindowResized ( const CoreGraphics::WindowId id,
SizeT width,
SizeT height )
static

Update when window resized.


The documentation for this class was generated from the following files: