From: Mikko Rasa Date: Sun, 25 Sep 2022 16:58:40 +0000 (+0300) Subject: Use forward references for entry point interfaces in SPIR-V X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=b6c4e1a794276ca343c0c9bb0a300e729ca41931;p=libs%2Fgl.git Use forward references for entry point interfaces in SPIR-V --- diff --git a/source/glsl/spirv.cpp b/source/glsl/spirv.cpp index b263fe87..404ffaf3 100644 --- a/source/glsl/spirv.cpp +++ b/source/glsl/spirv.cpp @@ -1832,7 +1832,7 @@ void SpirVGenerator::visit_entry_point(FunctionDeclaration &func, Id func_id) for(Node *n: dependencies) if(const VariableDeclaration *var = dynamic_cast(n)) if(!var->interface.empty()) - writer.write(get_id(*n)); + writer.write(allocate_forward_id(*n)); writer.end_op(OP_ENTRY_POINT);