12#include "gpulang/render/system_shaders/shared.h"
47void GetOffsets(uint64_t& tickOffset, uint64_t& viewOffset, uint64_t& shadowOffset,
const GlobalTables table);
QueueType
Definition config.h:40
Implements the shader server used by Vulkan.
Definition cameramanager.h:22
void SetGlobalEnvironmentTextures(const CoreGraphics::TextureId &env, const CoreGraphics::TextureId &irr, const SizeT numMips)
Set global irradiance and cubemaps.
Definition globalconstants.cc:245
const CoreGraphics::ResourceTableId GetFrameResourceTable(uint32_t bufferIndex, GlobalTables table)
Get per-tick resource table for queue.
Definition globalconstants.cc:267
void UpdateViewConstants(const Shared::ViewConstants::STRUCT &viewConstants)
Set view params.
Definition globalconstants.cc:128
void SetupBufferConstants()
Setup gbuffer bindings.
Definition globalconstants.cc:256
void UpdateShadowConstants(const Shared::ShadowViewConstants::STRUCT &shadowViewConstants)
Set camera params.
Definition globalconstants.cc:138
void GetOffsets(uint64_t &tickOffset, uint64_t &viewOffset, uint64_t &shadowOffset, const GlobalTables table)
Get frame constant offsets.
Definition globalconstants.cc:225
const Shared::PerTickParams::STRUCT & GetTickParams()
Get tick params constant buffer.
Definition globalconstants.cc:236
const std::array< CoreGraphics::ResourceTableId,(uint) GlobalTables::NumQueues > GetFrameResourceTables(uint32_t bufferIndex)
Get per-tick resource tables for all queues.
Definition globalconstants.cc:276
GlobalTables
Definition globalconstants.h:23
@ GraphicsQueue
Definition globalconstants.h:24
@ NumQueues
Definition globalconstants.h:27
@ ComputeQueue
Definition globalconstants.h:25
void AllocateGlobalConstants()
Run when starting frame.
Definition globalconstants.cc:90
Shared::ShadowViewConstants::STRUCT shadowViewConstants
Definition globalconstants.cc:34
const std::array< CoreGraphics::QueueType,(uint) GlobalTables::NumQueues > GetTableQueues()
Get the different per-queue resource tables.
Definition globalconstants.cc:303
Shared::ViewConstants::STRUCT viewConstants
Definition globalconstants.cc:33
Shared::PerTickParams::STRUCT tickParams
Definition globalconstants.cc:19
const CoreGraphics::ResourceTableId GetTickResourceTable(uint32_t bufferIndex, GlobalTables table)
Get per-tick resource table for queue.
Definition globalconstants.cc:285
void DestroyGlobalConstants()
Destroy global constants.
Definition globalconstants.cc:74
void UpdateTickParams(const Shared::PerTickParams::STRUCT &tickParams)
Set tick params.
Definition globalconstants.cc:118
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:148
const std::array< CoreGraphics::ResourceTableId,(uint) GlobalTables::NumQueues > GetTickResourceTables(uint32_t bufferIndex)
Get per-tick resource table for all queues.
Definition globalconstants.cc:294
Compile time configuration options for the CoreGraphics subsystem.
Definition commandbuffer.h:176
Definition resourcetable.h:95
texture type
Definition texture.h:25
Definition globalconstants.h:18
int SizeT
Definition types.h:42
unsigned int uint
Definition types.h:33