Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
ff21a25b
Commit
ff21a25b
authored
Jan 09, 2017
by
Alex Szpakowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change disabled-by-default DISABLE_HLSL option to enabled-by-default ENABLE_HLSL.
Matches existing options.
parent
84eabf7e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
CMakeLists.txt
CMakeLists.txt
+5
-5
CMakeLists.txt
StandAlone/CMakeLists.txt
+1
-1
ShaderLang.cpp
glslang/MachineIndependent/ShaderLang.cpp
+6
-6
No files found.
CMakeLists.txt
View file @
ff21a25b
...
@@ -6,7 +6,7 @@ option(ENABLE_GLSLANG_BINARIES "Builds glslangValidator and spirv-remap" ON)
...
@@ -6,7 +6,7 @@ option(ENABLE_GLSLANG_BINARIES "Builds glslangValidator and spirv-remap" ON)
option
(
ENABLE_NV_EXTENSIONS
"Enables support of Nvidia-specific extensions"
ON
)
option
(
ENABLE_NV_EXTENSIONS
"Enables support of Nvidia-specific extensions"
ON
)
option
(
DISABLE_HLSL
"Disables HLSL input support"
OFF
)
option
(
ENABLE_HLSL
"Enables HLSL input support"
ON
)
enable_testing
()
enable_testing
()
...
@@ -22,9 +22,9 @@ if(ENABLE_NV_EXTENSIONS)
...
@@ -22,9 +22,9 @@ if(ENABLE_NV_EXTENSIONS)
add_definitions
(
-DNV_EXTENSIONS
)
add_definitions
(
-DNV_EXTENSIONS
)
endif
(
ENABLE_NV_EXTENSIONS
)
endif
(
ENABLE_NV_EXTENSIONS
)
if
(
DIS
ABLE_HLSL
)
if
(
EN
ABLE_HLSL
)
add_definitions
(
-D
DIS
ABLE_HLSL
)
add_definitions
(
-D
EN
ABLE_HLSL
)
endif
(
DIS
ABLE_HLSL
)
endif
(
EN
ABLE_HLSL
)
if
(
WIN32
)
if
(
WIN32
)
set
(
CMAKE_DEBUG_POSTFIX
"d"
)
set
(
CMAKE_DEBUG_POSTFIX
"d"
)
...
@@ -69,7 +69,7 @@ if(ENABLE_GLSLANG_BINARIES)
...
@@ -69,7 +69,7 @@ if(ENABLE_GLSLANG_BINARIES)
add_subdirectory
(
StandAlone
)
add_subdirectory
(
StandAlone
)
endif
()
endif
()
add_subdirectory
(
SPIRV
)
add_subdirectory
(
SPIRV
)
if
(
NOT DIS
ABLE_HLSL
)
if
(
EN
ABLE_HLSL
)
add_subdirectory
(
hlsl
)
add_subdirectory
(
hlsl
)
endif
()
endif
()
add_subdirectory
(
gtests
)
add_subdirectory
(
gtests
)
StandAlone/CMakeLists.txt
View file @
ff21a25b
...
@@ -26,7 +26,7 @@ set(LIBRARIES
...
@@ -26,7 +26,7 @@ set(LIBRARIES
SPVRemapper
SPVRemapper
glslang-default-resource-limits
)
glslang-default-resource-limits
)
if
(
NOT DIS
ABLE_HLSL
)
if
(
EN
ABLE_HLSL
)
set
(
LIBRARIES
${
LIBRARIES
}
HLSL
)
set
(
LIBRARIES
${
LIBRARIES
}
HLSL
)
endif
()
endif
()
...
...
glslang/MachineIndependent/ShaderLang.cpp
View file @
ff21a25b
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
#include "Scan.h"
#include "Scan.h"
#include "ScanContext.h"
#include "ScanContext.h"
#if
ndef DIS
ABLE_HLSL
#if
def EN
ABLE_HLSL
#include "../../hlsl/hlslParseHelper.h"
#include "../../hlsl/hlslParseHelper.h"
#include "../../hlsl/hlslParseables.h"
#include "../../hlsl/hlslParseables.h"
#include "../../hlsl/hlslScanContext.h"
#include "../../hlsl/hlslScanContext.h"
...
@@ -76,7 +76,7 @@ TBuiltInParseables* CreateBuiltInParseables(TInfoSink& infoSink, EShSource sourc
...
@@ -76,7 +76,7 @@ TBuiltInParseables* CreateBuiltInParseables(TInfoSink& infoSink, EShSource sourc
{
{
switch
(
source
)
{
switch
(
source
)
{
case
EShSourceGlsl
:
return
new
TBuiltIns
();
// GLSL builtIns
case
EShSourceGlsl
:
return
new
TBuiltIns
();
// GLSL builtIns
#if
ndef DIS
ABLE_HLSL
#if
def EN
ABLE_HLSL
case
EShSourceHlsl
:
return
new
TBuiltInParseablesHlsl
();
// HLSL intrinsics
case
EShSourceHlsl
:
return
new
TBuiltInParseablesHlsl
();
// HLSL intrinsics
#endif
#endif
...
@@ -93,7 +93,7 @@ TParseContextBase* CreateParseContext(TSymbolTable& symbolTable, TIntermediate&
...
@@ -93,7 +93,7 @@ TParseContextBase* CreateParseContext(TSymbolTable& symbolTable, TIntermediate&
SpvVersion
spvVersion
,
bool
forwardCompatible
,
EShMessages
messages
,
SpvVersion
spvVersion
,
bool
forwardCompatible
,
EShMessages
messages
,
bool
parsingBuiltIns
,
const
std
::
string
sourceEntryPointName
=
""
)
bool
parsingBuiltIns
,
const
std
::
string
sourceEntryPointName
=
""
)
{
{
#if
def DIS
ABLE_HLSL
#if
ndef EN
ABLE_HLSL
(
void
)
sourceEntryPointName
;
// Unused argument.
(
void
)
sourceEntryPointName
;
// Unused argument.
#endif
#endif
...
@@ -103,7 +103,7 @@ TParseContextBase* CreateParseContext(TSymbolTable& symbolTable, TIntermediate&
...
@@ -103,7 +103,7 @@ TParseContextBase* CreateParseContext(TSymbolTable& symbolTable, TIntermediate&
return
new
TParseContext
(
symbolTable
,
intermediate
,
parsingBuiltIns
,
version
,
profile
,
spvVersion
,
return
new
TParseContext
(
symbolTable
,
intermediate
,
parsingBuiltIns
,
version
,
profile
,
spvVersion
,
language
,
infoSink
,
forwardCompatible
,
messages
);
language
,
infoSink
,
forwardCompatible
,
messages
);
#if
ndef DIS
ABLE_HLSL
#if
def EN
ABLE_HLSL
case
EShSourceHlsl
:
case
EShSourceHlsl
:
return
new
HlslParseContext
(
symbolTable
,
intermediate
,
parsingBuiltIns
,
version
,
profile
,
spvVersion
,
return
new
HlslParseContext
(
symbolTable
,
intermediate
,
parsingBuiltIns
,
version
,
profile
,
spvVersion
,
language
,
infoSink
,
sourceEntryPointName
.
c_str
(),
forwardCompatible
,
messages
);
language
,
infoSink
,
sourceEntryPointName
.
c_str
(),
forwardCompatible
,
messages
);
...
@@ -1096,7 +1096,7 @@ int ShInitialize()
...
@@ -1096,7 +1096,7 @@ int ShInitialize()
PerProcessGPA
=
new
TPoolAllocator
();
PerProcessGPA
=
new
TPoolAllocator
();
glslang
::
TScanContext
::
fillInKeywordMap
();
glslang
::
TScanContext
::
fillInKeywordMap
();
#if
ndef DIS
ABLE_HLSL
#if
def EN
ABLE_HLSL
glslang
::
HlslScanContext
::
fillInKeywordMap
();
glslang
::
HlslScanContext
::
fillInKeywordMap
();
#endif
#endif
...
@@ -1191,7 +1191,7 @@ int __fastcall ShFinalize()
...
@@ -1191,7 +1191,7 @@ int __fastcall ShFinalize()
}
}
glslang
::
TScanContext
::
deleteKeywordMap
();
glslang
::
TScanContext
::
deleteKeywordMap
();
#if
ndef DIS
ABLE_HLSL
#if
def EN
ABLE_HLSL
glslang
::
HlslScanContext
::
deleteKeywordMap
();
glslang
::
HlslScanContext
::
deleteKeywordMap
();
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment