# should not include the "vk" prefix and the vendor suffix - these # will be added by the codegen accordingly. EXTENSIONS = [ Extension("VK_EXT_debug_utils"), Extension("VK_KHR_get_physical_device_properties2", functions=[ "GetPhysicalDeviceFeatures2", "GetPhysicalDeviceProperties2" ]), Extension("VK_KHR_external_memory_capabilities"), Extension("VK_MVK_moltenvk", nonstandard=True), ] # constructor: Layer(name, conditions=[]) LAYERS = [ # if we have debug_util, allow a validation layer to be added. Layer("VK_LAYER_KHRONOS_validation", conditions=["have_EXT_debug_utils"]), Layer( "VK_LAYER_LUNARG_standard_validation", conditions=["have_EXT_debug_utils", "!have_layer_KHRONOS_validation"]), ] REPLACEMENTS = { "VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES2_EXTENSION_NAME": "VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME" } header_code = """ #ifndef ZINK_INSTANCE_H #define ZINK_INSTANCE_H #include "os/os_process.h"
EXTENSIONS = [ Extension("VK_EXT_debug_utils"), Extension("VK_KHR_get_physical_device_properties2"), Extension("VK_KHR_external_memory_capabilities"), Extension("VK_MVK_moltenvk", nonstandard=True), Extension("VK_KHR_surface"), Extension("VK_EXT_headless_surface"), Extension("VK_KHR_wayland_surface"), Extension("VK_KHR_xcb_surface"), ] # constructor: Layer(name, conditions=[]) # - conditions: See documentation of EXTENSIONS. LAYERS = [ # if we have debug_util, allow a validation layer to be added. Layer("VK_LAYER_KHRONOS_validation", conditions=["zink_debug & ZINK_DEBUG_VALIDATION"]), Layer("VK_LAYER_LUNARG_standard_validation", conditions=[ "zink_debug & ZINK_DEBUG_VALIDATION", "!have_layer_KHRONOS_validation" ]), ] REPLACEMENTS = { "VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES2_EXTENSION_NAME": "VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME" } header_code = """ #ifndef ZINK_INSTANCE_H #define ZINK_INSTANCE_H