Correct wording of comment about required flags

The word "subset" is used when it should be "superset" instead.
This commit is contained in:
Dylan Ede 2017-07-08 11:32:45 +01:00 committed by GitHub
parent f1ce3ad7bb
commit d0f7c97f76

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.