Nebula
Loading...
Searching...
No Matches
globalconstants.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
11//------------------------------------------------------------------------------
12
13namespace Graphics
14{
15
17{
18
19};
20
25
28
30void UpdateTickParams(const Shared::PerTickParams& tickParams);
32void UpdateViewConstants(const Shared::ViewConstants& viewConstants);
34void UpdateShadowConstants(const Shared::ShadowViewConstants& shadowViewConstants);
37
39void GetOffsets(IndexT& tickOffset, IndexT& viewOffset, IndexT& shadowOffset);
40
42const Shared::PerTickParams& GetTickParams();
44const Shared::ViewConstants& GetViewConstants();
46const Shared::ShadowViewConstants& GetShadowViewConstants();
47
52
55
57const CoreGraphics::ResourceTableId GetTickResourceTable(uint32_t bufferIndex);
58}
QueueType
Definition config.h:40
Implements the shader server used by Vulkan.
Definition cameramanager.h:21
void SetGlobalEnvironmentTextures(const CoreGraphics::TextureId &env, const CoreGraphics::TextureId &irr, const SizeT numMips)
Set global irradiance and cubemaps.
Definition globalconstants.cc:241
void UpdateTickParams(const Shared::PerTickParams &tickParams)
Set tick params.
Definition globalconstants.cc:101
void UpdateViewConstants(const Shared::ViewConstants &viewConstants)
Set view params.
Definition globalconstants.cc:111
void UpdateShadowConstants(const Shared::ShadowViewConstants &shadowViewConstants)
Set camera params.
Definition globalconstants.cc:121
Shared::PerTickParams tickParams
Definition globalconstants.cc:19
const CoreGraphics::ResourceTableId GetFrameResourceTable(uint32_t bufferIndex)
Get per-tick resource table for graphics.
Definition globalconstants.cc:264
void SetupBufferConstants()
Setup gbuffer bindings.
Definition globalconstants.cc:252
void AllocateGlobalConstants()
Run when starting frame.
Definition globalconstants.cc:79
const Shared::ShadowViewConstants & GetShadowViewConstants()
Get current shadow view constnats.
Definition globalconstants.cc:232
Shared::ShadowViewConstants shadowViewConstants
Definition globalconstants.cc:34
const Shared::PerTickParams & GetTickParams()
Get tick params constant buffer.
Definition globalconstants.cc:214
void GetOffsets(IndexT &tickOffset, IndexT &viewOffset, IndexT &shadowOffset)
Get frame constant offsets.
Definition globalconstants.cc:203
void DestroyGlobalConstants()
Destroy global constants.
Definition globalconstants.cc:66
const CoreGraphics::ResourceTableId GetTickResourceTable(uint32_t bufferIndex)
Get per-tick resource table for graphics.
Definition globalconstants.cc:273
void CreateGlobalConstants(const GlobalConstantsCreateInfo &info)
Create global constants.
Definition globalconstants.cc:42
void FlushUpdates(const CoreGraphics::CmdBufferId buf, const CoreGraphics::QueueType queue)
Flush constants by recording update command to command buffer.
Definition globalconstants.cc:131
const Shared::ViewConstants & GetViewConstants()
Get current view constants.
Definition globalconstants.cc:223
Shared::ViewConstants viewConstants
Definition globalconstants.cc:33
Definition commandbuffer.h:155
Definition resourcetable.h:95
texture type
Definition texture.h:25
Definition globalconstants.h:17
int SizeT
Definition types.h:49
int IndexT
Definition types.h:48