vkGetPhysicalDeviceMemoryProperties
函数原型
void vkGetPhysicalDeviceMemoryProperties(
VkPhysicalDevice physicalDevice,
VkPhysicalDeviceMemoryProperties* pMemoryProperties);
描述
查询物理设备的内存属性,物理设备的内存属性描述了可用的内存堆和内存类型。
参数
-
physicalDevice
: 查询的物理设备。 -
pMemoryProperties
:VkPhysicalDeviceMemoryProperties
结构体指针,包含查询返回的设备内存属性。
返回值
无
代码示例
// get memory properties from device 0
VkPhysicalDevice physicalDevice = GetPhysicalDevices(0);
VkPhysicalDeviceMemoryProperties deviceMemoryProperties = {};
vkGetPhysicalDeviceMemoryProperties(physicalDevice, &deviceMemoryProperties);