SPIRV-Cross

(★ 2,487)

SPIRV-Cross is a practical tool and library for performing reflection on SPIR-V and disassembling SPIR-V back to high level languages.

File Explorer

Showing a partial file list — download the zip above to see everything.

  • .clang-format
  • .gitignore
  • appveyor.yml
  • build_glslang_spirv_tools.sh
  • checkout_glslang_spirv_tools.sh
  • CMakeLists.txt
  • CODE_OF_CONDUCT.adoc
  • format_all.sh
  • GLSL.std.450.h
  • LICENSE
  • main.cpp
  • Makefile
  • NonSemanticShaderDebugInfo100.h
  • Package.swift
  • README.md

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Showing a partial file list.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

clang-format

View Details ▼

Auto-format C/C++/Java/JavaScript/Objective-C/Protobuf/C# code.

clang-format {{path/to/file}}

Format a file and print the result to `stdout`:

clang-format -i {{path/to/file}}

Format a file in-place:

clang-format --style {{LLVM|GNU|Google|Chromium|Microsoft|Mozilla|WebKit}} {{path/to/file}}

Format a file using a predefined coding style:

🔍

ctest

View Details ▼

CMake test driver program.

ctest

Run all tests in the current CMake build directory:

ctest {{[-j|--parallel]}} 4

Run all tests defined in the CMake build directory, executing 4 [j]obs at a time in parallel:

ctest {{[-j|--parallel]}}

Run all tests on all processor cores:

🔍

git clone

View Details ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

pkg-config

View Details ▼

Provide the details of installed libraries for compiling applications.

pkg-config --libs {{library1 library2 ...}}

Get the list of libraries and their dependencies:

pkg-config --cflags --libs {{library1 library2 ...}}

Get the list of libraries, their dependencies, and proper cflags for gcc:

pkg-config --modversion {{module1 module2 ...}}

Print the version of the linked modules:

// repository documentation