| 1550 | } |
| 1551 | |
| 1552 | void VulkanDeviceInfoExtensions::readPhysicalFeatures_AMD() { |
| 1553 | VkPhysicalDeviceFeatures2 deviceFeatures2{}; |
| 1554 | if (extensionSupported("VK_AMD_device_coherent_memory")) { |
| 1555 | const char* extension("VK_AMD_device_coherent_memory"); |
| 1556 | VkPhysicalDeviceCoherentMemoryFeaturesAMD* extFeatures = new VkPhysicalDeviceCoherentMemoryFeaturesAMD{}; |
| 1557 | extFeatures->sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COHERENT_MEMORY_FEATURES_AMD; |
| 1558 | deviceFeatures2 = initDeviceFeatures2(extFeatures); |
| 1559 | vulkanContext.vkGetPhysicalDeviceFeatures2KHR(device, &deviceFeatures2); |
| 1560 | pushFeature2(extension, "deviceCoherentMemory", extFeatures->deviceCoherentMemory); |
| 1561 | delete extFeatures; |
| 1562 | } |
| 1563 | if (extensionSupported("VK_AMD_shader_early_and_late_fragment_tests")) { |
| 1564 | const char* extension("VK_AMD_shader_early_and_late_fragment_tests"); |
| 1565 | VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD* extFeatures = new VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD{}; |
| 1566 | extFeatures->sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_FEATURES_AMD; |
| 1567 | deviceFeatures2 = initDeviceFeatures2(extFeatures); |
| 1568 | vulkanContext.vkGetPhysicalDeviceFeatures2KHR(device, &deviceFeatures2); |
| 1569 | pushFeature2(extension, "shaderEarlyAndLateFragmentTests", extFeatures->shaderEarlyAndLateFragmentTests); |
| 1570 | delete extFeatures; |
| 1571 | } |
| 1572 | if (extensionSupported("VK_AMD_anti_lag")) { |
| 1573 | const char* extension("VK_AMD_anti_lag"); |
| 1574 | VkPhysicalDeviceAntiLagFeaturesAMD* extFeatures = new VkPhysicalDeviceAntiLagFeaturesAMD{}; |
| 1575 | extFeatures->sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ANTI_LAG_FEATURES_AMD; |
| 1576 | deviceFeatures2 = initDeviceFeatures2(extFeatures); |
| 1577 | vulkanContext.vkGetPhysicalDeviceFeatures2KHR(device, &deviceFeatures2); |
| 1578 | pushFeature2(extension, "antiLag", extFeatures->antiLag); |
| 1579 | delete extFeatures; |
| 1580 | } |
| 1581 | } |
| 1582 | void VulkanDeviceInfoExtensions::readPhysicalFeatures_AMDX() { |
| 1583 | VkPhysicalDeviceFeatures2 deviceFeatures2{}; |
| 1584 | if (extensionSupported("VK_AMDX_shader_enqueue")) { |
nothing calls this directly
no outgoing calls
no test coverage detected