Vulkan-Hpp

(★ 3,778)

Open-Source Vulkan C++ API

File Explorer

  • .gitmodules
  • CMakeLists.txt
  • CMakePresets.json
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • glfw
  • glm
  • glslang
  • LICENSE.txt
  • README.md
  • REUSE.toml
  • tinyxml2
  • Vulkan-Headers
  • VulkanHpp.natvis

# Installation Guide

cmake
Prerequisites

Setup Steps

git clone https://github.com/KhronosGroup/Vulkan-Hpp.git

Clone the Vulkan-Hpp repository.

cmake -B build -S .

Configure the build directory using CMake.

cmake --build build

Build the project, samples, and tests.

Key Commands

cmake -B build -S .

Configure CMake and generate build files.

cmake --build build

Build the project using the generated configuration.

vcpkg install vulkan-headers

Install vulkan-headers dependency via vcpkg.

As a header-only library, you can directly include the headers or use CMake for integration.

# 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.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

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:

// repository documentation