Searched refs:roundedUpDeviceMemory (Results 1 – 1 of 1) sorted by relevance
375 …const VkDeviceSize roundedUpDeviceMemory = roundUpToNextMultiple(objectDeviceMemoryUsage, memoryLi… in getSafeObjectCount() local377 if (memoryLimits.totalDeviceLocalMemory > 0 && roundedUpDeviceMemory > 0) in getSafeObjectCount()381 (size_t)(memoryLimits.totalDeviceLocalMemory / roundedUpDeviceMemory)); in getSafeObjectCount()383 return (size_t)(memoryLimits.totalDeviceLocalMemory / roundedUpDeviceMemory); in getSafeObjectCount()385 else if (objectSystemMemoryUsage + roundedUpDeviceMemory > 0) in getSafeObjectCount()387 DE_ASSERT(roundedUpDeviceMemory <= std::numeric_limits<size_t>::max() - objectSystemMemoryUsage); in getSafeObjectCount()388 return memoryLimits.totalSystemMemory / (objectSystemMemoryUsage + (size_t)roundedUpDeviceMemory); in getSafeObjectCount()