blob: 5c5200e1e7f96a25525285df663a1cfe014f8bcb [file] [log] [blame]
//
// Copyright 2016 Google Inc.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
#ifndef HS_GLSL_PREAMBLE_ONCE
#define HS_GLSL_PREAMBLE_ONCE
//
//
//
#define HS_EVAL(a) a
#define HS_HASH_SYMBOL #
#define HS_HASH() HS_EVAL(HS_HASH_SYMBOL)
#define HS_GLSL_EXT() HS_HASH()extension // will be indented one space
#define HS_GLSL_EXT_REQUIRE(name) HS_GLSL_EXT() name : require
#define HS_GLSL_VERSION(ver) HS_HASH()version ver // will be indented one space
//
//
//
HS_GLSL_VERSION(450)
HS_GLSL_EXT_REQUIRE(GL_KHR_shader_subgroup_basic)
HS_GLSL_EXT_REQUIRE(GL_KHR_shader_subgroup_shuffle)
#if HS_KEY_WORDS == 2
HS_GLSL_EXT_REQUIRE(GL_ARB_gpu_shader_int64)
#endif
//
//
//
#endif
//
//
//