From 6da80f58ba8f51fc768f177f28a7d818b03c434e Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Thu, 13 Jul 2017 09:12:50 -0700 Subject: Allow GLSL `#version` to be selected based on profile Fixes #83 - The basic idea is that I added a bunch of more specific profile names line `glsl_vertex_430` which indicate the desired GLSL version the user wants. - An explicit `#version` line in the code always overrides one specified by profile, though --- source/slang/profile.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/slang/profile.h') diff --git a/source/slang/profile.h b/source/slang/profile.h index f8839be84..6d55d3195 100644 --- a/source/slang/profile.h +++ b/source/slang/profile.h @@ -54,6 +54,7 @@ namespace Slang Unknown, #define PROFILE(TAG, NAME, STAGE, VERSION) TAG = (uint32_t(Stage::STAGE) << 16) | uint32_t(ProfileVersion::VERSION), +#define PROFILE_ALIAS(TAG, DEF, NAME) TAG = DEF, #include "profile-defs.h" }; -- cgit v1.2.3