• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2016 Google Inc.
3 //
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6 //
7 
8 #ifndef HS_GLSL_PREAMBLE_ONCE
9 #define HS_GLSL_PREAMBLE_ONCE
10 
11 //
12 //
13 //
14 
15 #define HS_EVAL(a)                a
16 #define HS_HASH_SYMBOL            #
17 #define HS_HASH()                 HS_EVAL(HS_HASH_SYMBOL)
18 #define HS_GLSL_EXT()             HS_HASH()extension   // will be indented one space
19 #define HS_GLSL_EXT_REQUIRE(name) HS_GLSL_EXT() name : require
20 #define HS_GLSL_VERSION(ver)      HS_HASH()version ver // will be indented one space
21 
22 //
23 //
24 //
25 
26 HS_GLSL_VERSION(450)
27 HS_GLSL_EXT_REQUIRE(GL_KHR_shader_subgroup_basic)
28 HS_GLSL_EXT_REQUIRE(GL_KHR_shader_subgroup_shuffle)
29 
30 #if HS_KEY_WORDS == 2
31 HS_GLSL_EXT_REQUIRE(GL_ARB_gpu_shader_int64)
32 #endif
33 
34 //
35 //
36 //
37 
38 #endif
39 
40 //
41 //
42 //
43