diff options
author | David Neto <dneto@google.com> | 2016-02-17 14:44:00 -0500 |
---|---|---|
committer | David Neto <dneto@google.com> | 2016-02-17 14:49:44 -0500 |
commit | 5a70335bf1c858b8cf6a22e35dcc41090496c3c1 (patch) | |
tree | 48ac408f94d88c33e77951fc36220fe5a90fca5f /source/validate.h | |
parent | d1bb51dbb07be54666c074922670e618105e1046 (diff) | |
download | spirv-tools-5a70335bf1c858b8cf6a22e35dcc41090496c3c1.tar.gz |
Rearrange headers
Now we have public headers arranged as follows:
$SPIRV_TOOLS_ROOT/include/spirv-tools/libspirv.h
$SPIRV_TOOLS_ROOT/include/spirv/spirv.h
$SPIRV_TOOLS_ROOT/include/spirv/GLSL.std.450.h
$SPIRV_TOOLS_ROOT/include/spirv/OpenCL.std.h
A project should use -I$SPIRV_TOOLS_ROOT/include
and then #include "spirv-tools/libspirv.h"
The headers from the SPIR-V Registry can be accessed as "spirv/spirv."
for example.
The install target should also install the headers from the SPIR-V
Registry. The libspirv.h header is broken otherwise.
The SPIRV-Tools library depends on the headers from the SPIR-V Registry.
The util/bitutils.h and util/hex_float.h are pulled into the internal
source tree. Those are not part of the public API to SPIRV-Tools.
Diffstat (limited to 'source/validate.h')
-rw-r--r-- | source/validate.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/validate.h b/source/validate.h index c87aa08a..d6e180ac 100644 --- a/source/validate.h +++ b/source/validate.h @@ -34,12 +34,11 @@ #include <utility> #include <vector> -#include "libspirv/libspirv.h" - #include "assembly_grammar.h" #include "binary.h" #include "diagnostic.h" #include "instruction.h" +#include "spirv-tools/libspirv.h" #include "spirv_definition.h" #include "table.h" |