You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// size_t opaqueCaptureAddress = 0u; Note that this mechanism is intended only to support capture/replay tools, and is not recommended for use in other applications.
@@ -331,6 +333,11 @@ class NBL_API2 ILogicalDevice : public core::IReferenceCounted, public IDeviceMe
331
333
m_logger.log("Failed to create Buffer, size %d larger than Device %p's limit (%u)!",system::ILogger::ELL_ERROR,creationParams.size,this,maxSize);
332
334
returnnullptr;
333
335
}
336
+
if (creationParams.queueFamilyIndexCount>MaxQueueFamilies)
337
+
{
338
+
m_logger.log("Failed to create Buffer, queue family count %d for concurrent sharing larger than our max %d!",system::ILogger::ELL_ERROR,creationParams.queueFamilyIndexCount,MaxQueueFamilies);
// Create a BufferView, to a shader; a fake 1D-like texture with no interpolation (@see ICPUBufferView)
@@ -343,7 +350,12 @@ class NBL_API2 ILogicalDevice : public core::IReferenceCounted, public IDeviceMe
343
350
m_logger.log("Failed to create Image, invalid creation parameters!",system::ILogger::ELL_ERROR);
344
351
returnnullptr;
345
352
}
346
-
// TODO: @Cyprian validation of creationParams against the device's limits (sample counts, etc.) see vkCreateImage
353
+
if (creationParams.queueFamilyIndexCount>MaxQueueFamilies)
354
+
{
355
+
m_logger.log("Failed to create Image, queue family count %d for concurrent sharing larger than our max %d!",system::ILogger::ELL_ERROR,creationParams.queueFamilyIndexCount,MaxQueueFamilies);
356
+
returnnullptr;
357
+
}
358
+
// TODO: validation of creationParams against the device's limits (sample counts, etc.) see vkCreateImage docs
0 commit comments