summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHai Nguyen <379079+chaoticbob@users.noreply.github.com>2022-05-09 10:08:12 -0400
committerGitHub <noreply@github.com>2022-05-09 10:08:12 -0400
commit0ecfbfb2932aaa15254b58888f89d2fe275799bc (patch)
tree7278e336b130db7c0f2475a758ff475d8c4ceffa
parentd0b2d3cdb02404c7da3820027f4cf1aa7596a194 (diff)
parentf2241d55af5404a2d17c9cb8a73d131fdc3ce202 (diff)
downloadSPIRV-Reflect-0ecfbfb2932aaa15254b58888f89d2fe275799bc.tar.gz
Merge pull request #146 from AWoloszyn/custom_spirv_h
Add the ability to use a different spirv.h
-rw-r--r--spirv_reflect.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/spirv_reflect.h b/spirv_reflect.h
index 38bf70e..02b8161 100644
--- a/spirv_reflect.h
+++ b/spirv_reflect.h
@@ -30,7 +30,12 @@ VERSION HISTORY
#ifndef SPIRV_REFLECT_H
#define SPIRV_REFLECT_H
+#if defined(SPIRV_REFLECT_USE_SYSTEM_SPIRV_H)
+#include <spirv/unified1/spirv.h>
+#else
#include "./include/spirv/unified1/spirv.h"
+#endif
+
#include <stdint.h>
#include <string.h>