From e02fb9c12b4bec8cf68d867841e9c9ae4f772340 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Sat, 7 Sep 2024 12:44:47 +0300 Subject: [PATCH] foo --- src/vk.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/vk.c b/src/vk.c index e26a455..648d5b5 100644 --- a/src/vk.c +++ b/src/vk.c @@ -1288,7 +1288,7 @@ static int create_device(void) { float *prio; VkDeviceQueueCreateInfo qinf[MAX_INIT_QUEUE] = {0}; - VkPhysicalDeviceFeatures feat = {0}; + /*VkPhysicalDeviceFeatures feat = {0};*/ VkDeviceCreateInfo devinf = {0}; const char *ext[ARRSZ(known_devext_list) + 16]; int i, j, num_ext, qfam, totalq; @@ -1351,7 +1351,7 @@ static int create_device(void) devinf.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO; devinf.pQueueCreateInfos = qinf; devinf.queueCreateInfoCount = num_initq; - devinf.pEnabledFeatures = &feat; + devinf.pEnabledFeatures = 0;/*&feat;*/ devinf.enabledExtensionCount = num_ext; devinf.ppEnabledExtensionNames = ext; @@ -1364,6 +1364,10 @@ static int create_device(void) rtprop.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_PROPERTIES_KHR; vkGetPhysicalDeviceProperties2(vkpdev, &prop2); + printf("RT max recursion depth: %u\n", rtprop.maxRayRecursionDepth); + printf("RT max hit attrib size: %u\n", rtprop.maxRayHitAttributeSize); + printf("RT max ray distpatch: %u\n", rtprop.maxRayDispatchInvocationCount); + devinf.pNext = init_rayext_list(); } -- 1.7.10.4