mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-22 19:18:30 +00:00
GPU: Vulkan requires drawIndirectFirstInstance feature (#11583)
This commit is contained in:
@@ -11014,7 +11014,8 @@ static Uint8 VULKAN_INTERNAL_IsDeviceSuitable(
|
|||||||
if (!deviceFeatures.independentBlend ||
|
if (!deviceFeatures.independentBlend ||
|
||||||
!deviceFeatures.imageCubeArray ||
|
!deviceFeatures.imageCubeArray ||
|
||||||
!deviceFeatures.depthClamp ||
|
!deviceFeatures.depthClamp ||
|
||||||
!deviceFeatures.shaderClipDistance) {
|
!deviceFeatures.shaderClipDistance ||
|
||||||
|
!deviceFeatures.drawIndirectFirstInstance) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -11260,6 +11261,7 @@ static Uint8 VULKAN_INTERNAL_CreateLogicalDevice(
|
|||||||
desiredDeviceFeatures.imageCubeArray = VK_TRUE;
|
desiredDeviceFeatures.imageCubeArray = VK_TRUE;
|
||||||
desiredDeviceFeatures.depthClamp = VK_TRUE;
|
desiredDeviceFeatures.depthClamp = VK_TRUE;
|
||||||
desiredDeviceFeatures.shaderClipDistance = VK_TRUE;
|
desiredDeviceFeatures.shaderClipDistance = VK_TRUE;
|
||||||
|
desiredDeviceFeatures.drawIndirectFirstInstance = VK_TRUE;
|
||||||
|
|
||||||
if (haveDeviceFeatures.fillModeNonSolid) {
|
if (haveDeviceFeatures.fillModeNonSolid) {
|
||||||
desiredDeviceFeatures.fillModeNonSolid = VK_TRUE;
|
desiredDeviceFeatures.fillModeNonSolid = VK_TRUE;
|
||||||
|
Reference in New Issue
Block a user