/// <summary> /// Reports memory information for the specified physical device. /// </summary> public unsafe SharpVk.PhysicalDeviceMemoryProperties GetMemoryProperties() { try { SharpVk.PhysicalDeviceMemoryProperties result = default(SharpVk.PhysicalDeviceMemoryProperties); SharpVk.Interop.PhysicalDeviceMemoryProperties marshalledMemoryProperties = default(SharpVk.Interop.PhysicalDeviceMemoryProperties); Interop.Commands.vkGetPhysicalDeviceMemoryProperties(this.handle, &marshalledMemoryProperties); result = SharpVk.PhysicalDeviceMemoryProperties.MarshalFrom(&marshalledMemoryProperties); return(result); } finally { Interop.HeapUtil.FreeAll(); } }
/// <summary> /// Reports memory information for the specified physical device. /// </summary> public unsafe SharpVk.PhysicalDeviceMemoryProperties GetMemoryProperties() { try { SharpVk.PhysicalDeviceMemoryProperties result = default(SharpVk.PhysicalDeviceMemoryProperties); SharpVk.Interop.PhysicalDeviceMemoryProperties marshalledMemoryProperties = default(SharpVk.Interop.PhysicalDeviceMemoryProperties); SharpVk.Interop.VkPhysicalDeviceGetMemoryPropertiesDelegate commandDelegate = commandCache.GetCommandDelegate <SharpVk.Interop.VkPhysicalDeviceGetMemoryPropertiesDelegate>("vkGetPhysicalDeviceMemoryProperties", ""); commandDelegate(this.handle, &marshalledMemoryProperties); result = SharpVk.PhysicalDeviceMemoryProperties.MarshalFrom(&marshalledMemoryProperties); return(result); } finally { Interop.HeapUtil.FreeAll(); } }