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



commit 26720e2d9e7d9d9b993419e2cb3b7d62623202ca
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 b869fec..ae71e43 100644
--- a/gsk/gskspvwriter.c
+++ b/gsk/gskspvwriter.c
@@ -183,6 +183,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]