[gtk+/wip/otte/shader: 6/23] gskspv: Claim to support the same source extensions as glslc



commit 17b5893124bed976328c90946b7fd3cabf4a0043
Author: Benjamin Otte <otte redhat com>
Date:   Sat Oct 7 23:16:26 2017 +0200

    gskspv: Claim to support the same source extensions as glslc
    
    Makes it easier to compare disassembler output and hurts nobody.

 gsk/gskspvwriter.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gsk/gskspvwriter.c b/gsk/gskspvwriter.c
index 0bb4c0b..c1cb7ac 100644
--- a/gsk/gskspvwriter.c
+++ b/gsk/gskspvwriter.c
@@ -181,6 +181,8 @@ gsk_spv_writer_do_write (GskSpvWriter     *writer,
                          440,
                          0,
                          NULL);
+  gsk_spv_writer_source_extension (writer, "GL_GOOGLE_cpp_style_line_directive");
+  gsk_spv_writer_source_extension (writer, "GL_GOOGLE_include_directive");
   gsk_spv_writer_memory_model (writer,
                                GSK_SPV_ADDRESSING_MODEL_LOGICAL,
                                GSK_SPV_MEMORY_MODEL_GLSL450);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]