We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85234a4 commit f117be1Copy full SHA for f117be1
ggml/src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp
@@ -18,6 +18,7 @@
18
#include <algorithm>
19
#include <sys/stat.h>
20
#include <sys/types.h>
21
+#include <filesystem>
22
23
#ifdef _WIN32
24
#define NOMINMAX
@@ -1080,6 +1081,11 @@ int main(int argc, char** argv) {
1080
1081
1082
if (args.find("--glslc") != args.end()) {
1083
GLSLC = args["--glslc"]; // Path to glslc
1084
+
1085
+ if (!std::filesystem::exists(GLSLC) || !std::filesystem::is_regular_file(GLSLC)) {
1086
+ std::cerr << "Error: glslc not found at " << GLSLC << std::endl;
1087
+ return EXIT_FAILURE;
1088
+ }
1089
}
1090
if (args.find("--source") != args.end()) {
1091
input_filepath = args["--source"]; // The shader source file to compile
0 commit comments