comparison src/vulkan_api/vulkan_api_generator.nim @ 206:7f921d7d0a2b

did: small refactoring of module structure
author Sam <sam@basx.dev>
date Tue, 09 May 2023 01:11:51 +0700
parents 110ed3ee5df8
children ddfc54036e00
comparison
equal deleted inserted replaced
205:24d18cd8be8a 206:7f921d7d0a2b
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 ""