Merge pull request #1 from dylanede/patch-1

Correct wording of comment about required flags
This commit is contained in:
Adam Sawicki 2017-07-11 10:13:10 +02:00 committed by GitHub
commit 7600059ae7

View File

@ -3626,7 +3626,7 @@ VkResult vmaFindMemoryTypeIndex(
uint32_t preferredFlags = pMemoryRequirements->preferredFlags;
if(preferredFlags == 0)
preferredFlags = requiredFlags;
// preferredFlags, if not 0, must be subset of requiredFlags.
// preferredFlags, if not 0, must be a superset of requiredFlags.
VMA_ASSERT((requiredFlags & ~preferredFlags) == 0);
// Convert usage to requiredFlags and preferredFlags.