float lh = hw / cosf(alpha);
bisec = vec2_perp(bisec);
- //limit bisectrice lenght, may be improved but ok for perf
+ //limit bisectrice length, may be improved but ok for perf
lh=fminf (lh, fminf (sqrtf(length_v0*length_v0+hw*hw), sqrtf(length_v1*length_v1+hw*hw)));
bisec = vec2_mult(bisec,lh);
#if defined(DEBUG) && defined (VKVG_DBG_UTILS)
enabledExts[enabledExtsCount++] = "VK_EXT_debug_utils";
#endif
+ enabledExts[enabledExtsCount++] = "VK_KHR_get_physical_device_properties2";
VkhApp app = vkh_app_create("vkvg", 0, NULL, enabledExtsCount, enabledExts);
enabledExtsCount=0;
//https://vulkan.lunarg.com/doc/view/1.2.162.0/mac/1.2-extensions/vkspec.html#VK_KHR_portability_subset
- if (vkh_phyinfo_try_get_extension_properties(pi, "VK_KHR_get_physical_device_properties2", NULL) &&
- vkh_phyinfo_try_get_extension_properties(pi, "VK_KHR_portability_subset", NULL)) {
+ if (vkh_phyinfo_try_get_extension_properties(pi, "VK_KHR_portability_subset", NULL))
enabledExts[enabledExtsCount++] = "VK_KHR_get_physical_device_properties2";
- enabledExts[enabledExtsCount++] = "VK_KHR_portability_subset";
- }
VkDeviceCreateInfo device_info = { .sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO,
.queueCreateInfoCount = qCount,
const char** enabledLayers = NULL;
#endif
#if defined(DEBUG) && defined (VKVG_DBG_UTILS)
- enabledExts[enabledExtsCount] = "VK_EXT_debug_utils";
- enabledExtsCount++;
+ enabledExts[enabledExtsCount++] = "VK_EXT_debug_utils";
#endif
- /*enabledExts[enabledExtsCount] = "VK_KHR_get_physical_device_properties2";
- enabledExtsCount++;*/
+ enabledExts[enabledExtsCount++] = "VK_KHR_get_physical_device_properties2";
e->app = vkh_app_create("vkvgTest", enabledLayersCount, enabledLayers, enabledExtsCount, enabledExts);
#if defined(DEBUG) && defined (VKVG_DBG_UTILS)
if (vkh_phyinfo_try_get_extension_properties(pi, "VK_EXT_blend_operation_advanced", NULL))
enabledExts[enabledExtsCount++] = "VK_EXT_blend_operation_advanced";
- if (vkh_phyinfo_try_get_extension_properties(pi, "VK_KHR_get_physical_device_properties2", NULL) &&
- vkh_phyinfo_try_get_extension_properties(pi, "VK_KHR_portability_subset", NULL)) {
+ if (vkh_phyinfo_try_get_extension_properties(pi, "VK_KHR_portability_subset", NULL))
enabledExts[enabledExtsCount++] = "VK_KHR_get_physical_device_properties2";
- enabledExts[enabledExtsCount++] = "VK_KHR_portability_subset";
- }
VkPhysicalDeviceFeatures enabledFeatures = {
.fillModeNonSolid = true,
//.sampleRateShading = true