Merge pull request #51 from h3xl3r/master

Emit header_lines for MSL also
This commit is contained in:
Hans-Kristian Arntzen 2016-09-17 08:46:29 +02:00 committed by GitHub
commit 5fa4bc6874

View File

@ -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 <metal_stdlib>");
statement("#include <simd/simd.h>");
statement("");