Structures
VkMemoryRequirements
Structure specifying memory requirements
The VkMemoryRequirements structure is defined as:
typedef struct VkMemoryRequirements {
VkDeviceSize size;
VkDeviceSize alignment;
uint32_t memoryTypeBits;
} VkMemoryRequirements;
pub struct MemoryRequirements {
size: vk::DeviceSize, // Specified in bytes
alignment: vk::DeviceSize, // Specified in bytes
memory_type_bits: u32, // Bitmask of the allowed memory type indices into memoryTypes[] for this object
}
sizeis the size, in bytes, of the memory allocation required for the resource.alignmentis the alignment, in bytes, of the offset within the allocation required for the resource.memoryTypeBitsis a bitmask and contains one bit set for every supported memory type for the resource. Bitiis set if and only if the memory typeiin theVkPhysicalDeviceMemoryPropertiesstructure for the physical device is supported for the resource.
Parent
VK_VERSION_1_0Type
Structures