summaryrefslogtreecommitdiffstats
path: root/examples/gpu-printing
diff options
context:
space:
mode:
authorkaizhangNV <149626564+kaizhangNV@users.noreply.github.com>2024-07-17 12:53:19 -0500
committerGitHub <noreply@github.com>2024-07-17 10:53:19 -0700
commit2db15080085856ed9b5f20642dbb354aac59a888 (patch)
tree4f6558b8c3aac5e5191edaa092230ecb449f4a44 /examples/gpu-printing
parent7d07bd29fee7dcd74fe73940723effc68f427e67 (diff)
Move the file public header files to `include` dir (#4636)
* Move the file public header files to `include` dir Close the issue (#4635). Move the following headers files to a `include` dir located at root dir of slang repo: slang-com-helper.h -> include/slang-com-helper.h slang-com-ptr.h -> include/slang-com-ptr.h slang-gfx.h -> include/slang-gfx.h slang.h -> include/slang.h Change cmake/SlangTarget.cmake to add include path to every target, and change the source file to use "#include <slang.h>" to include the public headers. The source code update is by the script like follow: ``` fileNames_slang=$(grep -r "\".*slang\.h\"" source/ -l) for fileName in "${fileNames_slang[@]}" do echo "$fileName" sed -i "s/\".*slang\.h\"/\"slang\.h\"/" $fileName done ``` * Fix the test issues * Fix cpu test issues by adding include seach path * Update cmake to not add include path for every target Also change "#include <slang.h>" to "include "slang.h" " to make the coding style consistent with other slang code. * Change public include to private include for unit-test and slang-glslang
Diffstat (limited to 'examples/gpu-printing')
-rw-r--r--examples/gpu-printing/gpu-printing.h2
-rw-r--r--examples/gpu-printing/main.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/gpu-printing/gpu-printing.h b/examples/gpu-printing/gpu-printing.h
index 81c2e615f..64eaf770a 100644
--- a/examples/gpu-printing/gpu-printing.h
+++ b/examples/gpu-printing/gpu-printing.h
@@ -9,7 +9,7 @@
// strings that were specified in Slang shader code, and
// for that it will use the Slang reflection API.
//
-#include <slang.h>
+#include "slang.h"
// We also need a way to store the data for strings that
// were used in shader code, and we will go ahead and
diff --git a/examples/gpu-printing/main.cpp b/examples/gpu-printing/main.cpp
index 39b97a889..aa5beea95 100644
--- a/examples/gpu-printing/main.cpp
+++ b/examples/gpu-printing/main.cpp
@@ -1,9 +1,9 @@
// main.cpp
#include <string>
-#include <slang.h>
+#include "slang.h"
-#include <slang-com-ptr.h>
+#include "slang-com-ptr.h"
using Slang::ComPtr;
#include "gpu-printing.h"