From f05364eff466254d4f0d11529e27ff6ad589284f Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Sat, 31 Oct 2015 00:31:16 +0800 Subject: bug 15040: Add device limit for maximum number of samplers (and other objects?) (WIP) Add maxSamplerAllocationCount. https://cvs.khronos.org/bugzilla/show_bug.cgi?id=15040 --- include/vulkan.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/vulkan.h b/include/vulkan.h index b4e1e30e..81969063 100644 --- a/include/vulkan.h +++ b/include/vulkan.h @@ -123,9 +123,10 @@ typedef enum VkResult { VK_ERROR_EXTENSION_NOT_PRESENT = -7, VK_ERROR_FEATURE_NOT_PRESENT = -8, VK_ERROR_INCOMPATIBLE_DRIVER = -9, - VK_RESULT_BEGIN_RANGE = VK_ERROR_INCOMPATIBLE_DRIVER, + VK_ERROR_TOO_MANY_OBJECTS = -10, + VK_RESULT_BEGIN_RANGE = VK_ERROR_TOO_MANY_OBJECTS, VK_RESULT_END_RANGE = VK_INCOMPLETE, - VK_RESULT_RANGE_SIZE = (VK_INCOMPLETE - VK_ERROR_INCOMPATIBLE_DRIVER + 1), + VK_RESULT_RANGE_SIZE = (VK_INCOMPLETE - VK_ERROR_TOO_MANY_OBJECTS + 1), VK_RESULT_MAX_ENUM = 0x7FFFFFFF } VkResult; @@ -1192,6 +1193,7 @@ typedef struct VkPhysicalDeviceLimits { uint32_t maxStorageBufferRange; uint32_t maxPushConstantsSize; uint32_t maxMemoryAllocationCount; + uint32_t maxSamplerAllocationCount; VkDeviceSize bufferImageGranularity; VkDeviceSize sparseAddressSpaceSize; uint32_t maxBoundDescriptorSets; -- cgit v1.2.3