summaryrefslogtreecommitdiff
path: root/source/slangc/main.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-06-15 15:54:35 -0700
committerGitHub <noreply@github.com>2017-06-15 15:54:35 -0700
commit1353a7854a738ae173aa1b2f3361f54b82757095 (patch)
tree199e9a54596c572015c7b0652e62b941418f483f /source/slangc/main.cpp
parentc34a433d7aa3fdbfefee22f20d5aac2d960f392a (diff)
parent04d43cd71f081f1b8d2f0fd803a47cb6342e4fcd (diff)
Merge pull request #26 from tfoleyNV/cleanup
Cleanup
Diffstat (limited to 'source/slangc/main.cpp')
-rw-r--r--source/slangc/main.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/slangc/main.cpp b/source/slangc/main.cpp
index b0ddc7ab6..ead286434 100644
--- a/source/slangc/main.cpp
+++ b/source/slangc/main.cpp
@@ -4,15 +4,14 @@
#include "core/slang-io.h"
+using namespace Slang;
+
#include <assert.h>
// Currently only used for looking up `Profile::` values that aren't
// exported by the public API
#include "../slang/profile.h"
-using namespace CoreLib::Basic;
-using namespace CoreLib::IO;
-
// Try to read an argument for a command-line option.
wchar_t const* tryReadCommandLineArgumentRaw(wchar_t const* option, wchar_t***ioCursor, wchar_t**end)
{
@@ -149,7 +148,7 @@ struct OptionsParser
#undef CASE
#define CASE(EXT, LANG, PROFILE) \
- else if(path.EndsWith(EXT)) do { addInputForeignShaderPath(path, SLANG_SOURCE_LANGUAGE_##LANG, SlangProfileID(Slang::Compiler::Profile::PROFILE)); } while(0)
+ else if(path.EndsWith(EXT)) do { addInputForeignShaderPath(path, SLANG_SOURCE_LANGUAGE_##LANG, SlangProfileID(Slang::Profile::PROFILE)); } while(0)
// TODO: need a way to pass along stage/profile and entry-point info for these cases...
CASE(".vert", GLSL, GLSL_Vertex);
CASE(".frag", GLSL, GLSL_Fragment);