spirv-headers/cci.20211010

Header files for the SPIRV instruction set.
Recipe info
MIT-KhronosGroup
2022-10-24

Available packages
Header Only

Install
Add the following line to your conanfile.txt:
[requires]
spirv-headers/cci.20211010

Using spirv-headers

Note

If you are new with Conan, we recommend to read the section how to consume packages.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
spirv-headers/cci.20211010
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("spirv-headers/cci.20211010")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): SPIRV-Headers
  • CMake target name(s): SPIRV-Headers::SPIRV-Headers
  • pkg-config file name(s): SPIRV-Headers.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(SPIRV-Headers REQUIRED)
# ...
target_link_libraries(YOUR_TARGET SPIRV-Headers::SPIRV-Headers)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the spirv-headers homepage listed above:

#include "spirv/1.0/GLSL.std.450.h"
#include "spirv/1.0/OpenCL.std.h"
#include "spirv/1.0/extinst.glsl.std.450.grammar.json"
#include "spirv/1.0/extinst.opencl.std.100.grammar.json"
#include "spirv/1.0/spirv.core.grammar.json"
#include "spirv/1.0/spirv.cs"
#include "spirv/1.0/spirv.h"
#include "spirv/1.0/spirv.hpp"
#include "spirv/1.0/spirv.hpp11"
#include "spirv/1.0/spirv.json"
#include "spirv/1.0/spirv.lua"
#include "spirv/1.0/spirv.py"
#include "spirv/1.1/GLSL.std.450.h"
#include "spirv/1.1/OpenCL.std.h"
#include "spirv/1.1/extinst.glsl.std.450.grammar.json"
#include "spirv/1.1/extinst.opencl.std.100.grammar.json"
#include "spirv/1.1/spirv.core.grammar.json"
#include "spirv/1.1/spirv.cs"
#include "spirv/1.1/spirv.h"
#include "spirv/1.1/spirv.hpp"
#include "spirv/1.1/spirv.hpp11"
#include "spirv/1.1/spirv.json"
#include "spirv/1.1/spirv.lua"
#include "spirv/1.1/spirv.py"
#include "spirv/1.2/GLSL.std.450.h"
#include "spirv/1.2/OpenCL.std.h"
#include "spirv/1.2/extinst.glsl.std.450.grammar.json"
#include "spirv/1.2/extinst.opencl.std.100.grammar.json"
#include "spirv/1.2/spirv.core.grammar.json"
#include "spirv/1.2/spirv.cs"
#include "spirv/1.2/spirv.h"
#include "spirv/1.2/spirv.hpp"
#include "spirv/1.2/spirv.hpp11"
#include "spirv/1.2/spirv.json"
#include "spirv/1.2/spirv.lua"
#include "spirv/1.2/spirv.py"
#include "spirv/spir-v.xml"
#include "spirv/unified1/AMD_gcn_shader.h"
#include "spirv/unified1/AMD_shader_ballot.h"
#include "spirv/unified1/AMD_shader_explicit_vertex_parameter.h"
#include "spirv/unified1/AMD_shader_trinary_minmax.h"
#include "spirv/unified1/DebugInfo.h"
#include "spirv/unified1/GLSL.std.450.h"
#include "spirv/unified1/NonSemanticClspvReflection.h"
#include "spirv/unified1/NonSemanticDebugPrintf.h"
#include "spirv/unified1/NonSemanticShaderDebugInfo100.h"
#include "spirv/unified1/OpenCL.std.h"
#include "spirv/unified1/OpenCLDebugInfo100.h"
#include "spirv/unified1/extinst.debuginfo.grammar.json"
#include "spirv/unified1/extinst.glsl.std.450.grammar.json"
#include "spirv/unified1/extinst.nonsemantic.clspvreflection.grammar.json"
#include "spirv/unified1/extinst.nonsemantic.debugprintf.grammar.json"
#include "spirv/unified1/extinst.nonsemantic.shader.debuginfo.100.grammar.json"
#include "spirv/unified1/extinst.opencl.debuginfo.100.grammar.json"
#include "spirv/unified1/extinst.opencl.std.100.grammar.json"
#include "spirv/unified1/extinst.spv-amd-gcn-shader.grammar.json"
#include "spirv/unified1/extinst.spv-amd-shader-ballot.grammar.json"
#include "spirv/unified1/extinst.spv-amd-shader-explicit-vertex-parameter.grammar.json"
#include "spirv/unified1/extinst.spv-amd-shader-trinary-minmax.grammar.json"
#include "spirv/unified1/spirv.core.grammar.json"
#include "spirv/unified1/spirv.cs"
#include "spirv/unified1/spirv.h"
#include "spirv/unified1/spirv.hpp"
#include "spirv/unified1/spirv.hpp11"
#include "spirv/unified1/spirv.json"
#include "spirv/unified1/spirv.lua"
#include "spirv/unified1/spirv.py"
#include "spirv/unified1/spv.d"