Nebula
Loading...
Searching...
No Matches
globalconstants.cc File Reference
#include "globalconstants.h"
#include "coregraphics/shader.h"
#include "frame/default.h"
#include <array>

Namespaces

namespace  Graphics
 Implements the shader server used by Vulkan.

Functions

void Graphics::CreateGlobalConstants (const GlobalConstantsCreateInfo &info)
 Create global constants.
void Graphics::DestroyGlobalConstants ()
 Destroy global constants.
void Graphics::AllocateGlobalConstants ()
 Run when starting frame.
void Graphics::UpdateTickParams (const Shared::PerTickParams::STRUCT &tickParams)
 Set tick params.
void Graphics::UpdateViewConstants (const Shared::ViewConstants::STRUCT &viewConstants)
 Set view params.
void Graphics::UpdateShadowConstants (const Shared::ShadowViewConstants::STRUCT &shadowViewConstants)
 Set camera params.
void Graphics::FlushUpdates (const CoreGraphics::CmdBufferId buf, const CoreGraphics::QueueType queue)
 Flush constants by recording update command to command buffer.
void Graphics::GetOffsets (uint64_t &tickOffset, uint64_t &viewOffset, uint64_t &shadowOffset, const GlobalTables table)
 Get frame constant offsets.
const Shared::PerTickParams::STRUCT & Graphics::GetTickParams ()
 Get tick params constant buffer.
void Graphics::SetGlobalEnvironmentTextures (const CoreGraphics::TextureId &env, const CoreGraphics::TextureId &irr, const SizeT numMips)
 Set global irradiance and cubemaps.
void Graphics::SetupBufferConstants ()
 Setup gbuffer bindings.
const CoreGraphics::ResourceTableId Graphics::GetFrameResourceTable (uint32_t bufferIndex, GlobalTables table)
 Get per-tick resource table for queue.
const std::array< CoreGraphics::ResourceTableId,(uint) GlobalTables::NumQueuesGraphics::GetFrameResourceTables (uint32_t bufferIndex)
 Get per-tick resource tables for all queues.
const CoreGraphics::ResourceTableId Graphics::GetTickResourceTable (uint32_t bufferIndex, GlobalTables table)
 Get per-tick resource table for queue.
const std::array< CoreGraphics::ResourceTableId,(uint) GlobalTables::NumQueuesGraphics::GetTickResourceTables (uint32_t bufferIndex)
 Get per-tick resource table for all queues.
const std::array< CoreGraphics::QueueType,(uint) GlobalTables::NumQueuesGraphics::GetTableQueues ()
 Get the different per-queue resource tables.

Variables

struct { 
   Util::FixedArray< CoreGraphics::ResourceTableId >   Graphics::frameResourceTables [(uint) GlobalTables::NumQueues
   Util::FixedArray< CoreGraphics::ResourceTableId >   Graphics::tickResourceTables [(uint) GlobalTables::NumQueues
   CoreGraphics::ResourcePipelineId   Graphics::tableLayout 
   Shared::PerTickParams::STRUCT   Graphics::tickParams 
   union DirtySet
      struct { 
         bool   Graphics::graphicsDirty: 1 
         bool   Graphics::computeDirty: 1 
      } 
      int   Graphics::bits 
   } 
   DirtySet   Graphics::tickParamsDirty 
   uint64_t   Graphics::tickCboOffset [(uint) GlobalTables::NumQueues
   uint64_t   Graphics::viewCboOffset [(uint) GlobalTables::NumQueues
   uint64_t   Graphics::shadowViewCboOffset [(uint) GlobalTables::NumQueues
   Shared::ViewConstants::STRUCT   Graphics::viewConstants 
   Shared::ShadowViewConstants::STRUCT   Graphics::shadowViewConstants 
   DirtySet   Graphics::viewConstantsDirty 
   DirtySet   Graphics::shadowViewConstantsDirty 
Graphics::globalConstantState