Vkgetphysicaldevicefeatures2 [verified]
: Always ensure every struct in your chain has the correct sType initialized. Forgetting this is a leading cause of driver crashes and "garbage" data returns. Conclusion
To check for modern features, you "anchor" the specific feature structs you care about to the pNext pointer of your base VkPhysicalDeviceFeatures2 object. Example: Querying Ray Tracing and 16-bit Storage vkgetphysicaldevicefeatures2
A common mistake is to assume that if a feature is present in the query, you can blindly enable it. Some features are mutually exclusive or depend on other features. The chained query reveals these relationships. : Always ensure every struct in your chain
Starting with Vulkan 1.1, vkGetPhysicalDeviceFeatures2 is guaranteed to be supported as a core function. vkgetphysicaldevicefeatures2
Leave a Reply