memoryRequirementsmemoryTypeBits
memoryRequirementsmemoryTypeBits is a field in the Vulkan API that expresses memory compatibility for a resource such as a buffer or image. It is part of VkMemoryRequirements, which also includes the resource’s size and alignment. The memoryTypeBits field is a bitmask where each bit corresponds to a physical device memory type. If bit i is set, memory type i can be used to back the resource; if it is clear, that type is not suitable.
To allocate memory for a resource, a developer first retrieves its memory requirements via vkGetBufferMemoryRequirements or
Memory type bits reflect static hardware capabilities and do not guarantee current availability beyond initial compatibility.