From 393ef8f455919d84a9b8e144736b788605449cd3 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 17 Jan 2025 11:56:54 +0900 Subject: [PATCH] [qfcc] Define the geometry functions Now all my glsl shaders build, though most likely none of them correctly. However, I'm finally out of that tunnel... only to find myself in a moonlit forest fill with the sounds of wolves (at least, I hope they're wolves). --- tools/qfcc/source/glsl-builtins.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/qfcc/source/glsl-builtins.c b/tools/qfcc/source/glsl-builtins.c index 754b64744..7035e1e12 100644 --- a/tools/qfcc/source/glsl-builtins.c +++ b/tools/qfcc/source/glsl-builtins.c @@ -1159,10 +1159,10 @@ SRC_LINE //geometry shader functions static const char *glsl_geometry_functions = SRC_LINE -"void EmitStreamVertex(int stream);" "\n" -"void EndStreamPrimitive(int stream);" "\n" -"void EmitVertex();" "\n" -"void EndPrimitive();" "\n"; +"void EmitStreamVertex(int stream) = " SPV(OpEmitStreamVertex) ";" "\n" +"void EndStreamPrimitive(int stream) = " SPV(OpEndStreamPrimitive) ";" "\n" +"void EmitVertex() = " SPV(OpEmitVertex) ";" "\n" +"void EndPrimitive() = " SPV(OpEndPrimitive) ";" "\n"; //fragment processing functions static const char *glsl_fragment_functions =