Output shader descriptions directly in the source code

This commit is contained in:
Henrik Rydgård committed 2022-11-08 00:21:08 +01:00
1 parent bd40ccda51
commit 4e8f97d64d
3 files changed
+7

No files matched your search

+3
View File
@@ -49,6 +49,9 @@ bool GenerateGeometryShader(const GShaderID &id, char *buffer, const ShaderLangu
bool clipClampedDepth = gstate_c.Use(GPU_USE_DEPTH_CLAMP);
ShaderWriter p(buffer, compat, ShaderStage::Geometry, extensions);
p.F("// %s\n", GeometryShaderDesc(id).c_str());
p.C("layout(triangles) in;\n");
if (clipClampedDepth && vertexRangeCulling && !gstate_c.Use(GPU_USE_CLIP_DISTANCE)) {
p.C("layout(triangle_strip, max_vertices = 12) out;\n");