From e2a37b6301aca0154b9c6df3e5b29b704426d0be Mon Sep 17 00:00:00 2001 From: Rob Fischer Date: Sat, 17 Sep 2016 12:21:37 +0900 Subject: [PATCH] Emit header_lines for MSL also --- spirv_msl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spirv_msl.cpp b/spirv_msl.cpp index 25b024e..608bc83 100644 --- a/spirv_msl.cpp +++ b/spirv_msl.cpp @@ -390,6 +390,9 @@ uint32_t CompilerMSL::add_interface_struct(StorageClass storage, uint32_t vtx_bi // Emits the file header info void CompilerMSL::emit_header() { + for (auto &header : header_lines) + statement(header); + statement("#include "); statement("#include "); statement("");