Correct wording of comment about required flags

The word "subset" is used when it should be "superset" instead.
This commit is contained in:
Adam Sawicki 2017-07-11 14:43:43 +02:00
parent 4184ee53bd
commit a59788d60d

View File

@ -4870,7 +4870,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.