Nebula
Loading...
Searching...
No Matches
globalconstants.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
11//------------------------------------------------------------------------------
12#include "gpulang/render/system_shaders/shared.h"
13namespace Graphics
14{
15
17{
18
19};
20
25
28
30void UpdateTickParams(const Shared::PerTickParams::STRUCT& tickParams);
32void UpdateViewConstants(const Shared::ViewConstants::STRUCT& viewConstants);
34void UpdateShadowConstants(const Shared::ShadowViewConstants::STRUCT& shadowViewConstants);
37
39void GetOffsets(uint64_t& tickOffset, uint64_t& viewOffset, uint64_t& shadowOffset);
40
42const Shared::PerTickParams::STRUCT& GetTickParams();
44const Shared::ViewConstants::STRUCT& GetViewConstants();
46const Shared::ShadowViewConstants::STRUCT& 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
const Shared::ShadowViewConstants::STRUCT & GetShadowViewConstants()
Get current shadow view constnats.
Definition globalconstants.cc:232
const Shared::ViewConstants::STRUCT & GetViewConstants()
Get current view constants.
Definition globalconstants.cc:223
void UpdateViewConstants(const Shared::ViewConstants::STRUCT &viewConstants)
Set view params.
Definition globalconstants.cc:111
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 UpdateShadowConstants(const Shared::ShadowViewConstants::STRUCT &shadowViewConstants)
Set camera params.
Definition globalconstants.cc:121
const Shared::PerTickParams::STRUCT & GetTickParams()
Get tick params constant buffer.
Definition globalconstants.cc:214
void AllocateGlobalConstants()
Run when starting frame.
Definition globalconstants.cc:79
Shared::ShadowViewConstants::STRUCT shadowViewConstants
Definition globalconstants.cc:34
void GetOffsets(uint64_t &tickOffset, uint64_t &viewOffset, uint64_t &shadowOffset)
Get frame constant offsets.
Definition globalconstants.cc:203
Shared::ViewConstants::STRUCT viewConstants
Definition globalconstants.cc:33
Shared::PerTickParams::STRUCT tickParams
Definition globalconstants.cc:19
void DestroyGlobalConstants()
Destroy global constants.
Definition globalconstants.cc:66
void UpdateTickParams(const Shared::PerTickParams::STRUCT &tickParams)
Set tick params.
Definition globalconstants.cc:101
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
Definition commandbuffer.h:168
Definition resourcetable.h:95
texture type
Definition texture.h:25
Definition globalconstants.h:17
int SizeT
Definition types.h:42