// 1. Define the specific extension structs VkPhysicalDeviceRayTracingPipelineFeaturesKHR rtFeatures{}; rtFeatures.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_FEATURES_KHR; VkPhysicalDevice16BitStorageFeatures storage16Features{}; storage16Features.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES; storage16Features.pNext = &rtFeatures; // Link them! // 2. Define the base struct VkPhysicalDeviceFeatures2 totalFeatures{}; totalFeatures.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2; totalFeatures.pNext = &storage16Features; // Start the chain // 3. Query the hardware vkGetPhysicalDeviceFeatures2(physicalDevice, &totalFeatures); // 4. Check the results if (rtFeatures.rayTracingPipeline) // Hardware supports Ray Tracing! Use code with caution. Critical Best Practices
A robust Vulkan initialization routine should: vkgetphysicaldevicefeatures2
// 1. Define the specific extension structs VkPhysicalDeviceRayTracingPipelineFeaturesKHR rtFeatures{}; rtFeatures.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_FEATURES_KHR; VkPhysicalDevice16BitStorageFeatures storage16Features{}; storage16Features.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES; storage16Features.pNext = &rtFeatures; // Link them! // 2. Define the base struct VkPhysicalDeviceFeatures2 totalFeatures{}; totalFeatures.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2; totalFeatures.pNext = &storage16Features; // Start the chain // 3. Query the hardware vkGetPhysicalDeviceFeatures2(physicalDevice, &totalFeatures); // 4. Check the results if (rtFeatures.rayTracingPipeline) // Hardware supports Ray Tracing! Use code with caution. Critical Best Practices
A robust Vulkan initialization routine should:
This site has been created to be a reference for learning how to create charts in R as well as a place to look for inspiration.
If you are an R package developer you can suggest me to add examples of your packages related to graphs and charts. You will get more visibility and more people will know your work. Check how to contribute in the repository of this project.