4#include "shader/ShaderDescription.h"
5#include "misc/ProjectPaths.h"
6#include "shader/general/EngineShaderConstantMacros.hpp"
7#include "shader/general/EngineShaderNames.hpp"
23 static inline std::filesystem::path
26 const auto pLanguageName = bIsHlsl ?
"hlsl" :
"glsl";
29 pLanguageName /
"final" / (sShaderPathRelativeFinal +
"." + pLanguageName);
48 ShaderType::VERTEX_SHADER,
49 VertexFormat::MESH_NODE,
65 ShaderType::FRAGMENT_SHADER,
66 VertexFormat::MESH_NODE,
85 ShaderType::FRAGMENT_SHADER,
86 VertexFormat::MESH_NODE,
89 {
"POINT_LIGHT_SHADOW_PASS",
""}});
107 ShaderType::COMPUTE_SHADER,
125 ShaderType::COMPUTE_SHADER,
142 ShaderType::COMPUTE_SHADER,
Definition: EngineShaders.hpp:11
static std::filesystem::path constructPathToShaderSourceFile(bool bIsHlsl, const std::string &sShaderPathRelativeFinal)
Definition: EngineShaders.hpp:24
static std::filesystem::path getPathToResDirectory()
Definition: ProjectPaths.cpp:123
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
static std::string getLightCullingComputeShaderName()
Definition: EngineShaderNames.hpp:68
static std::string getCalculateFrustumGridComputeShaderName()
Definition: EngineShaderNames.hpp:49
static std::string getPrepareLightCullingComputeShaderName()
Definition: EngineShaderNames.hpp:59
static std::string getVertexShaderName()
Definition: EngineShaderNames.hpp:20
static std::string getFragmentShaderName()
Definition: EngineShaderNames.hpp:27
static std::string_view getFragmentShaderName()
Definition: EngineShaderNames.hpp:38
Definition: EngineShaders.hpp:94
static ShaderDescription getCalculateGridFrustumComputeShader(bool bIsHlsl)
Definition: EngineShaders.hpp:103
static ShaderDescription getLightCullingComputeShader(bool bIsHlsl)
Definition: EngineShaders.hpp:138
static ShaderDescription getPrepareLightCullingComputeShader(bool bIsHlsl)
Definition: EngineShaders.hpp:121
Definition: EngineShaders.hpp:36
static ShaderDescription getFragmentShader(bool bIsHlsl)
Definition: EngineShaders.hpp:61
static ShaderDescription getVertexShader(bool bIsHlsl)
Definition: EngineShaders.hpp:44
Definition: EngineShaders.hpp:73
static ShaderDescription getFragmentShader(bool bIsHlsl)
Definition: EngineShaders.hpp:81
Definition: ShaderDescription.h:74