Mercurial > games > semicongine
comparison src/vulkan_api/vulkan_api_generator.nim @ 667:d3500ae5d235
did: small refactoring of module structure
author | Sam <sam@basx.dev> |
---|---|
date | Tue, 09 May 2023 01:11:51 +0700 |
parents | affa6571a2c9 |
children | ddfc54036e00 |
comparison
equal
deleted
inserted
replaced
666:089c3dd9d62a | 667:d3500ae5d235 |
---|---|
645 for extension, loader in extensionLoaderMap[""].pairs: | 645 for extension, loader in extensionLoaderMap[""].pairs: |
646 mainout.add &" \"{extension}\": {loader}," | 646 mainout.add &" \"{extension}\": {loader}," |
647 mainout.add "}.toTable" | 647 mainout.add "}.toTable" |
648 for platform in api.findAll("platform"): | 648 for platform in api.findAll("platform"): |
649 mainout.add &"when defined({platform.attr(\"protect\")}):" | 649 mainout.add &"when defined({platform.attr(\"protect\")}):" |
650 mainout.add &" include platform/{platform.attr(\"name\")}" | 650 mainout.add &" ../vulkan/include platform/{platform.attr(\"name\")}" |
651 if platform.attr("name") in extensionLoaderMap: | 651 if platform.attr("name") in extensionLoaderMap: |
652 for extension, loader in extensionLoaderMap[platform.attr("name")].pairs: | 652 for extension, loader in extensionLoaderMap[platform.attr("name")].pairs: |
653 mainout.add &" EXTENSION_LOADERS[\"{extension}\"] = {loader}" | 653 mainout.add &" EXTENSION_LOADERS[\"{extension}\"] = {loader}" |
654 | 654 |
655 mainout.add "" | 655 mainout.add "" |