{"id":22293884,"url":"https://github.com/rtbo/vkdgen","last_synced_at":"2026-02-04T09:09:55.011Z","repository":{"id":71972804,"uuid":"163659241","full_name":"rtbo/vkdgen","owner":"rtbo","description":"Vulkan D bindings generator","archived":false,"fork":false,"pushed_at":"2020-12-31T06:11:50.000Z","size":185,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T19:26:33.461Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"D","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rtbo.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-31T10:15:11.000Z","updated_at":"2024-01-10T06:17:42.000Z","dependencies_parsed_at":"2023-03-11T11:41:02.304Z","dependency_job_id":null,"html_url":"https://github.com/rtbo/vkdgen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtbo%2Fvkdgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtbo%2Fvkdgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtbo%2Fvkdgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtbo%2Fvkdgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rtbo","download_url":"https://codeload.github.com/rtbo/vkdgen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245550681,"owners_count":20633883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T17:32:50.168Z","updated_at":"2026-02-04T09:09:49.982Z","avatar_url":"https://github.com/rtbo.png","language":"D","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vkdgen\n\nVulkan D bindings generator\n\nThis is not a Dub package and is not intended to become one. Users can copy\nthe files they need from the `d` folder, or generate their own with\n`gen_d_files.py`:\n```\n$ ./gen_d_files.py -h\nusage: gen_d_files.py [-h] [--package PACKAGE] [--dest DEST]\n\nVulkan D bindings generator\n\noptional arguments:\n  -h, --help         show this help message and exit\n  --package PACKAGE  D package of generated modules [vkd]\n  --dest DEST        Destination folder for generated files [(vkdgen)/d]\n```\n\nThe generated bindings do not include any global symbol such as `vkCreateBuffer`.\nInstead there are the following definitions:\n```d\nfinal class VkGlobalCmds {\n\n    this (PFN_vkGetInstanceProcAddr loader) {\n        // load all global commands\n    }\n\n    VkResult CreateInstance (...) { ... }\n\n}\n\nfinal class VkInstanceCmds {\n    this (VkInstance instance, VkGlobalCmds globalCmds) {\n        // load all instance commands\n    }\n\n    VkResult CreateDevice (VkInstance inst, ...) { ... }\n}\n\nfinal class VkDeviceCmds {\n    this (VkDevice device, VkInstanceCmds instanceCmds) {\n        // load all device commands\n    }\n\n    VkResult CreateBuffer (VkDevice device, ...) { ... }\n}\n```\nClient usage could be as follow\n```d\nimport vkd.vk;\nimport vkd.loader : loadVulkanGlobalCmds();\n\n// load global commands\nauto globVk = loadVulkanGlobalCmds();\n\n// load instance commands\nVkInstance inst;\nVkInstanceCreateInfo instCreateInfo = // ...\nglobVk.CreateInstance(\u0026instCreateInfo, null, \u0026inst);\nauto instVk = new VkInstanceCmds(inst, globVk);\n\n// load device commands\nVkPhysicalDevice phDev = // ...\nVkDevice dev;\nVkDeviceCreateInfo devCreateInfo = // ...\ninstVk.CreateDevice(phDev, \u0026devCreateInfo, null, \u0026dev);\nauto vk = new VkDeviceCmds(dev, instVk);\n\n// vk.CreateBuffer(dev, ...);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtbo%2Fvkdgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtbo%2Fvkdgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtbo%2Fvkdgen/lists"}