{"id":60511,"library":"volk","title":"volk","description":"Meta loader for Vulkan API. Note that the static library target volk::volk is built without platform-specific defines. Use the header-only target volk::volk_headers if you require platform-specific extensions.","status":"active","version":"1.4.304","language":"cpp","source_language":null,"source_url":null,"tags":["vulkan","loader","graphics","api"],"install":[{"cmd":"vcpkg install volk","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(volk CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE volk::volk)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"volk.h","correct":"#include <volk.h>"}],"quickstart":{"code":"#define VK_NO_PROTOTYPES\n#include <volk.h>\n\nint main() {\n    volkInitialize();\n    VkInstance instance;\n    VkApplicationInfo appInfo = {};\n    appInfo.sType = VK_STRUCTURE_TYPE_APPLICATION_INFO;\n    VkInstanceCreateInfo createInfo = {};\n    createInfo.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO;\n    createInfo.pApplicationInfo = &appInfo;\n    vkCreateInstance(&createInfo, nullptr, &instance);\n    volkLoadInstance(instance);\n    vkDestroyInstance(instance, nullptr);\n    return 0;\n}","lang":"cpp","description":"Initialize volk and create a Vulkan instance"},"warnings":[{"fix":"Link against volk::volk_headers instead of volk::volk if you need platform-specific Vulkan extensions","message":"Static library target volk::volk lacks platform-specific defines; use volk::volk_headers for extensions","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'api':6,41 'built':16 'defin':21 'extens':37 'graphic':40 'header':25,30 'header-on':24 'librari':11 'loader':3,39 'meta':2 'note':7 'platform':19,35 'platform-specif':18,34 'requir':33 'specif':20,36 'static':10 'target':12,27 'use':22 'volk':1,13,14,28,29 'vulkan':5,38 'without':17","created_at":"2026-06-16T19:33:53.835249+00:00","updated_at":"2026-06-16T19:33:53.835249+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}