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
eaf44963
Commit
eaf44963
authored
Aug 07, 2019
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Web: Complete the removal of vendor-specific #ifdef's, including CMake.
parent
441b2ac4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
25 deletions
+4
-25
CMakeLists.txt
CMakeLists.txt
+0
-11
CMakeLists.txt
SPIRV/CMakeLists.txt
+3
-13
SpvBuilder.cpp
SPIRV/SpvBuilder.cpp
+1
-1
No files found.
CMakeLists.txt
View file @
eaf44963
...
...
@@ -26,11 +26,8 @@ if(NOT ${SKIP_GLSLANG_INSTALL})
endif
()
option
(
ENABLE_SPVREMAPPER
"Enables building of SPVRemapper"
ON
)
option
(
ENABLE_AMD_EXTENSIONS
"Enables support of AMD-specific extensions"
ON
)
option
(
ENABLE_GLSLANG_BINARIES
"Builds glslangValidator and spirv-remap"
ON
)
option
(
ENABLE_NV_EXTENSIONS
"Enables support of Nvidia-specific extensions"
ON
)
option
(
ENABLE_GLSLANG_WEB
"Reduces glslang to minumum needed for web use"
OFF
)
option
(
ENABLE_EMSCRIPTEN_SINGLE_FILE
"If using emscripten, enables SINGLE_FILE build"
OFF
)
option
(
ENABLE_EMSCRIPTEN_ENVIRONMENT_NODE
"If using emscripten, builds to run on Node instead of Web"
OFF
)
...
...
@@ -67,14 +64,6 @@ project(glslang)
# make testing optional
include
(
CTest
)
if
(
ENABLE_AMD_EXTENSIONS
)
add_definitions
(
-DAMD_EXTENSIONS
)
endif
(
ENABLE_AMD_EXTENSIONS
)
if
(
ENABLE_NV_EXTENSIONS
)
add_definitions
(
-DNV_EXTENSIONS
)
endif
(
ENABLE_NV_EXTENSIONS
)
if
(
ENABLE_HLSL
)
add_definitions
(
-DENABLE_HLSL
)
endif
(
ENABLE_HLSL
)
...
...
SPIRV/CMakeLists.txt
View file @
eaf44963
...
...
@@ -25,24 +25,14 @@ set(HEADERS
spvIR.h
doc.h
SpvTools.h
disassemble.h
)
disassemble.h
GLSL.ext.AMD.h
GLSL.ext.NV.h
)
set
(
SPVREMAP_HEADERS
SPVRemapper.h
doc.h
)
if
(
ENABLE_AMD_EXTENSIONS
)
list
(
APPEND
HEADERS
GLSL.ext.AMD.h
)
endif
(
ENABLE_AMD_EXTENSIONS
)
if
(
ENABLE_NV_EXTENSIONS
)
list
(
APPEND
HEADERS
GLSL.ext.NV.h
)
endif
(
ENABLE_NV_EXTENSIONS
)
add_library
(
SPIRV
${
LIB_TYPE
}
${
SOURCES
}
${
HEADERS
}
)
set_property
(
TARGET SPIRV PROPERTY FOLDER glslang
)
set_property
(
TARGET SPIRV PROPERTY POSITION_INDEPENDENT_CODE ON
)
...
...
SPIRV/SpvBuilder.cpp
View file @
eaf44963
...
...
@@ -1826,7 +1826,7 @@ Id Builder::createTextureCall(Decoration precision, Id resultType, bool sparse,
if
(
parameters
.
component
!=
NoResult
)
texArgs
[
numArgs
++
]
=
parameters
.
component
;
#if
def NV_EXTENSIONS
#if
ndef GLSLANG_WEB
if
(
parameters
.
granularity
!=
NoResult
)
texArgs
[
numArgs
++
]
=
parameters
.
granularity
;
if
(
parameters
.
coarse
!=
NoResult
)
...
...
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