Shadergen: Move comments outside of emitted source code

This commit is contained in:
wheremyfoodat
2024-07-26 14:44:11 +03:00
committed by GitHub
parent b7bc520afa
commit f095e6af0b

View File

@@ -4,6 +4,8 @@
using namespace PICA;
using namespace PICA::ShaderGen;
// Note: We upload global ambient and fog colour as u32 and decode on the GPU
// This shouldn't matter much for GPU performance, especially fog since it's relatively rare
static constexpr const char* uniformDefinition = R"(
struct LightSource {
vec3 specular0;
@@ -24,8 +26,6 @@ static constexpr const char* uniformDefinition = R"(
vec4 constantColors[6];
vec4 tevBufferColor;
vec4 clipCoords;
// Note: We upload this as a u32 and decode on GPU
uint globalAmbientLight;
uint inFogColor;
LightSource lightSources[8];