Nameless Engine
Loading...
Searching...
No Matches
EngineShaderConstantMacros.hpp
1#pragma once
2
3// Standard.
4#include <unordered_map>
5#include <string>
6
7namespace ne {
10 public:
12
14 struct ForwardPlus {
23 static inline std::pair<std::string, std::string> getLightGridTileSizeMacro() {
24 return {"LIGHT_GRID_TILE_SIZE_IN_PIXELS", "16"};
25 }
26
35 static inline std::pair<std::string, std::string> getAveragePointLightNumPerTileMacro() {
36 return {"AVERAGE_POINT_LIGHT_NUM_PER_TILE", "200"};
37 }
38
47 static inline std::pair<std::string, std::string> getAverageSpotLightNumPerTileMacro() {
48 return {"AVERAGE_SPOT_LIGHT_NUM_PER_TILE", "200"};
49 }
50 };
51 };
52}
Definition: EngineShaderConstantMacros.hpp:9
Definition: EngineShaderConstantMacros.hpp:14
static std::pair< std::string, std::string > getLightGridTileSizeMacro()
Definition: EngineShaderConstantMacros.hpp:23
static std::pair< std::string, std::string > getAveragePointLightNumPerTileMacro()
Definition: EngineShaderConstantMacros.hpp:35
static std::pair< std::string, std::string > getAverageSpotLightNumPerTileMacro()
Definition: EngineShaderConstantMacros.hpp:47