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

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 &tickParams)
 Set tick params.
 
void Graphics::UpdateViewConstants (const Shared::ViewConstants &viewConstants)
 Set view params.
 
void Graphics::UpdateShadowConstants (const Shared::ShadowViewConstants &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 (IndexT &tickOffset, IndexT &viewOffset, IndexT &shadowOffset)
 Get frame constant offsets.
 
const Shared::PerTickParams & Graphics::GetTickParams ()
 Get tick params constant buffer.
 
const Shared::ViewConstants & Graphics::GetViewConstants ()
 Get current view constants.
 
const Shared::ShadowViewConstants & Graphics::GetShadowViewConstants ()
 Get current shadow view constnats.
 
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)
 Get per-tick resource table for graphics.
 
const CoreGraphics::ResourceTableId Graphics::GetTickResourceTable (uint32_t bufferIndex)
 Get per-tick resource table for graphics.