From b6c4e1a794276ca343c0c9bb0a300e729ca41931 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 25 Sep 2022 19:58:40 +0300 Subject: [PATCH] Use forward references for entry point interfaces in SPIR-V --- source/glsl/spirv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.45.2