Nebula
|
#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::BufferId * | GetClusterBuffer () |
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) |
Clustering::ClusterContext::ClusterContext | ( | ) |
constructor
|
virtual |
destructor
|
private |
|
static |
setup light context using CameraSettings
|
static |
Get cluster AABB buffer.
|
static |
get cluster dimensions
|
static |
get number of clusters
|
static |
implement me
|
staticprivate |
run light classification compute
|
static |
update constants
|
static |
Update when window resized.