From b006be7a2eccaeff9647b5b403d7d0a4ff13da3b Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 26 Feb 2021 01:20:02 +0200 Subject: [PATCH] Copy layouts when generating interfaces --- source/glsl/generate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/glsl/generate.cpp b/source/glsl/generate.cpp index c073d870..42226a91 100644 --- a/source/glsl/generate.cpp +++ b/source/glsl/generate.cpp @@ -361,6 +361,7 @@ bool InterfaceGenerator::generate_interface(VariableDeclaration &var, const stri iface_var->array = var.array; if(iface_var->array) iface_var->array_size = var.array_size; + iface_var->layout = var.layout; if(iface=="in") { iface_var->linked_declaration = &var; -- 2.45.2