comparison semiconginev2/rendering/vulkan/api.nim @ 1224:a3fa15c25026 compiletime-tests

did: cleanup, add audio, change platform-dependent structure
author sam <sam@basx.dev>
date Wed, 17 Jul 2024 22:02:11 +0700
parents 56781cc0fc7c
children
comparison
equal deleted inserted replaced
1223:55896320c8bf 1224:a3fa15c25026
11979 "VK_QCOM_fragment_density_map_offset": loadVK_QCOM_fragment_density_map_offset, 11979 "VK_QCOM_fragment_density_map_offset": loadVK_QCOM_fragment_density_map_offset,
11980 }.toTable 11980 }.toTable
11981 when defined(VK_USE_PLATFORM_XLIB_KHR): 11981 when defined(VK_USE_PLATFORM_XLIB_KHR):
11982 include ./platform/xlib 11982 include ./platform/xlib
11983 EXTENSION_LOADERS["VK_KHR_xlib_surface"] = loadVK_KHR_xlib_surface 11983 EXTENSION_LOADERS["VK_KHR_xlib_surface"] = loadVK_KHR_xlib_surface
11984 when defined(VK_USE_PLATFORM_XLIB_XRANDR_EXT):
11985 include ./platform/xlib_xrandr
11986 EXTENSION_LOADERS["VK_EXT_acquire_xlib_display"] = loadVK_EXT_acquire_xlib_display
11987 when defined(VK_USE_PLATFORM_XCB_KHR):
11988 include ./platform/xcb
11989 EXTENSION_LOADERS["VK_KHR_xcb_surface"] = loadVK_KHR_xcb_surface
11990 when defined(VK_USE_PLATFORM_WAYLAND_KHR):
11991 include ./platform/wayland
11992 EXTENSION_LOADERS["VK_KHR_wayland_surface"] = loadVK_KHR_wayland_surface
11993 when defined(VK_USE_PLATFORM_DIRECTFB_EXT):
11994 include ./platform/directfb
11995 EXTENSION_LOADERS["VK_EXT_directfb_surface"] = loadVK_EXT_directfb_surface
11996 when defined(VK_USE_PLATFORM_ANDROID_KHR):
11997 include ./platform/android
11998 EXTENSION_LOADERS["VK_KHR_android_surface"] = loadVK_KHR_android_surface
11999 EXTENSION_LOADERS["VK_ANDROID_external_memory_android_hardware_buffer"] = loadVK_ANDROID_external_memory_android_hardware_buffer
12000 when defined(VK_USE_PLATFORM_WIN32_KHR): 11984 when defined(VK_USE_PLATFORM_WIN32_KHR):
12001 include ./platform/win32 11985 include ./platform/win32
12002 EXTENSION_LOADERS["VK_KHR_external_semaphore_win32"] = loadVK_KHR_external_semaphore_win32 11986 EXTENSION_LOADERS["VK_KHR_external_semaphore_win32"] = loadVK_KHR_external_semaphore_win32
12003 EXTENSION_LOADERS["VK_EXT_full_screen_exclusive"] = loadVK_EXT_full_screen_exclusive 11987 EXTENSION_LOADERS["VK_EXT_full_screen_exclusive"] = loadVK_EXT_full_screen_exclusive
12004 EXTENSION_LOADERS["VK_NV_external_memory_win32"] = loadVK_NV_external_memory_win32 11988 EXTENSION_LOADERS["VK_NV_external_memory_win32"] = loadVK_NV_external_memory_win32
12005 EXTENSION_LOADERS["VK_KHR_external_memory_win32"] = loadVK_KHR_external_memory_win32 11989 EXTENSION_LOADERS["VK_KHR_external_memory_win32"] = loadVK_KHR_external_memory_win32
12006 EXTENSION_LOADERS["VK_NV_acquire_winrt_display"] = loadVK_NV_acquire_winrt_display 11990 EXTENSION_LOADERS["VK_NV_acquire_winrt_display"] = loadVK_NV_acquire_winrt_display
12007 EXTENSION_LOADERS["VK_KHR_win32_surface"] = loadVK_KHR_win32_surface 11991 EXTENSION_LOADERS["VK_KHR_win32_surface"] = loadVK_KHR_win32_surface
12008 EXTENSION_LOADERS["VK_KHR_external_fence_win32"] = loadVK_KHR_external_fence_win32 11992 EXTENSION_LOADERS["VK_KHR_external_fence_win32"] = loadVK_KHR_external_fence_win32
12009 EXTENSION_LOADERS["VK_KHR_win32_keyed_mutex"] = loadVK_KHR_win32_keyed_mutex 11993 EXTENSION_LOADERS["VK_KHR_win32_keyed_mutex"] = loadVK_KHR_win32_keyed_mutex
12010 when defined(VK_USE_PLATFORM_VI_NN):
12011 include ./platform/vi
12012 EXTENSION_LOADERS["VK_NN_vi_surface"] = loadVK_NN_vi_surface
12013 when defined(VK_USE_PLATFORM_IOS_MVK):
12014 include ./platform/ios
12015 EXTENSION_LOADERS["VK_MVK_ios_surface"] = loadVK_MVK_ios_surface
12016 when defined(VK_USE_PLATFORM_MACOS_MVK):
12017 include ./platform/macos
12018 EXTENSION_LOADERS["VK_MVK_macos_surface"] = loadVK_MVK_macos_surface
12019 when defined(VK_USE_PLATFORM_METAL_EXT):
12020 include ./platform/metal
12021 EXTENSION_LOADERS["VK_EXT_metal_objects"] = loadVK_EXT_metal_objects
12022 EXTENSION_LOADERS["VK_EXT_metal_surface"] = loadVK_EXT_metal_surface
12023 when defined(VK_USE_PLATFORM_FUCHSIA):
12024 include ./platform/fuchsia
12025 EXTENSION_LOADERS["VK_FUCHSIA_external_semaphore"] = loadVK_FUCHSIA_external_semaphore
12026 EXTENSION_LOADERS["VK_FUCHSIA_imagepipe_surface"] = loadVK_FUCHSIA_imagepipe_surface
12027 EXTENSION_LOADERS["VK_FUCHSIA_external_memory"] = loadVK_FUCHSIA_external_memory
12028 EXTENSION_LOADERS["VK_FUCHSIA_buffer_collection"] = loadVK_FUCHSIA_buffer_collection
12029 when defined(VK_USE_PLATFORM_GGP):
12030 include ./platform/ggp
12031 EXTENSION_LOADERS["VK_GGP_frame_token"] = loadVK_GGP_frame_token
12032 EXTENSION_LOADERS["VK_GGP_stream_descriptor_surface"] = loadVK_GGP_stream_descriptor_surface
12033 when defined(VK_USE_PLATFORM_SCI):
12034 include ./platform/sci
12035 when defined(VK_ENABLE_BETA_EXTENSIONS):
12036 include ./platform/provisional
12037 EXTENSION_LOADERS["VK_KHR_video_encode_queue"] = loadVK_KHR_video_encode_queue
12038 EXTENSION_LOADERS["VK_KHR_video_queue"] = loadVK_KHR_video_queue
12039 EXTENSION_LOADERS["VK_EXT_video_encode_h264"] = loadVK_EXT_video_encode_h264
12040 EXTENSION_LOADERS["VK_EXT_video_encode_h265"] = loadVK_EXT_video_encode_h265
12041 EXTENSION_LOADERS["VK_KHR_video_decode_queue"] = loadVK_KHR_video_decode_queue
12042 EXTENSION_LOADERS["VK_KHR_video_decode_h264"] = loadVK_KHR_video_decode_h264
12043 EXTENSION_LOADERS["VK_KHR_portability_subset"] = loadVK_KHR_portability_subset
12044 EXTENSION_LOADERS["VK_KHR_video_decode_h265"] = loadVK_KHR_video_decode_h265
12045 when defined(VK_USE_PLATFORM_SCREEN_QNX):
12046 include ./platform/screen
12047 EXTENSION_LOADERS["VK_QNX_screen_surface"] = loadVK_QNX_screen_surface
12048 11994
12049 proc loadExtension*(instance: VkInstance, extension: string) = 11995 proc loadExtension*(instance: VkInstance, extension: string) =
12050 if extension in EXTENSION_LOADERS: 11996 if extension in EXTENSION_LOADERS:
12051 EXTENSION_LOADERS[extension](instance) 11997 EXTENSION_LOADERS[extension](instance)
12052 11998