1. Home
  2. Browse
  3. spirv-tools

spirv-tools

v1.3.296.0#0Latest

API and commands for processing SPIR-V modules

Install

Run the following Vcpkg command to install the port.

vcpkg install spirv-tools

Usage

spirv-tools provides CMake targets:

find_package(SPIRV-Tools CONFIG REQUIRED)
# The static libary is always available.
# It offers full public symbol visibility.
target_link_libraries(main PRIVATE SPIRV-Tools-static)
# In triplets with dynamic library linkage, there is also a shared libary.
target_link_libraries(main PRIVATE SPIRV-Tools-shared)
# The following libraries are static and depend on SPIRV-Tools-static.
find_package(SPIRV-Tools-link CONFIG REQUIRED)
target_link_libraries(main PRIVATE SPIRV-Tools-link)
find_package(SPIRV-Tools-lint CONFIG REQUIRED)
target_link_libraries(main PRIVATE SPIRV-Tools-lint)
find_package(SPIRV-Tools-opt CONFIG REQUIRED)
target_link_libraries(main PRIVATE SPIRV-Tools-opt)
find_package(SPIRV-Tools-reduce CONFIG REQUIRED)
target_link_libraries(main PRIVATE SPIRV-Tools-reduce)

Features

Dependencies

See source

Version

v1.3.296.0#0

Publication

Supports

All

GitHub

KhronosGroup/SPIRV-Tools1.1K

Homepage

github.com/KhronosGroup/SPIRV-Tools

Subtree

d567b667ad

License

Apache-2.0

Definition

Manifest