From c39e90cbfdfbf9102cf88002674f1b97c12d43d7 Mon Sep 17 00:00:00 2001 From: Bill Hollings Date: Thu, 11 Jun 2020 17:03:03 -0400 Subject: [PATCH 1/2] Restore the correct value for maxDrawIndexedIndexValue. --- MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm b/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm index 6f5e4597..7362b304 100644 --- a/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm +++ b/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm @@ -1476,7 +1476,7 @@ void MVKPhysicalDevice::initProperties() { _properties.limits.maxComputeWorkGroupCount[1] = kMVKUndefinedLargeUInt32; _properties.limits.maxComputeWorkGroupCount[2] = kMVKUndefinedLargeUInt32; - _properties.limits.maxDrawIndexedIndexValue = kMVKUndefinedLargeUInt32; + _properties.limits.maxDrawIndexedIndexValue = numeric_limits::max(); _properties.limits.maxDrawIndirectCount = kMVKUndefinedLargeUInt32; _properties.limits.maxClipDistances = kMVKUndefinedLargeUInt32; From 05a2607391b87194077f705fbbe5de6e437511a3 Mon Sep 17 00:00:00 2001 From: Bill Hollings Date: Thu, 11 Jun 2020 17:08:32 -0400 Subject: [PATCH 2/2] Add explanatory comment regarding value of maxDrawIndexedIndexValue. --- MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm b/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm index 7362b304..f2866ae5 100644 --- a/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm +++ b/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm @@ -1476,7 +1476,7 @@ void MVKPhysicalDevice::initProperties() { _properties.limits.maxComputeWorkGroupCount[1] = kMVKUndefinedLargeUInt32; _properties.limits.maxComputeWorkGroupCount[2] = kMVKUndefinedLargeUInt32; - _properties.limits.maxDrawIndexedIndexValue = numeric_limits::max(); + _properties.limits.maxDrawIndexedIndexValue = numeric_limits::max(); // Must be (2^32 - 1) to support fullDrawIndexUint32 _properties.limits.maxDrawIndirectCount = kMVKUndefinedLargeUInt32; _properties.limits.maxClipDistances = kMVKUndefinedLargeUInt32;