/// <summary> /// Returns properties of a physical device. /// </summary> public unsafe SharpVk.PhysicalDeviceProperties GetProperties() { try { SharpVk.PhysicalDeviceProperties result = default(SharpVk.PhysicalDeviceProperties); SharpVk.Interop.PhysicalDeviceProperties marshalledProperties = default(SharpVk.Interop.PhysicalDeviceProperties); Interop.Commands.vkGetPhysicalDeviceProperties(this.handle, &marshalledProperties); result = SharpVk.PhysicalDeviceProperties.MarshalFrom(&marshalledProperties); return(result); } finally { Interop.HeapUtil.FreeAll(); } }
/// <summary> /// Returns properties of a physical device. /// </summary> public unsafe SharpVk.PhysicalDeviceProperties GetProperties() { try { SharpVk.PhysicalDeviceProperties result = default(SharpVk.PhysicalDeviceProperties); SharpVk.Interop.PhysicalDeviceProperties marshalledProperties = default(SharpVk.Interop.PhysicalDeviceProperties); SharpVk.Interop.VkPhysicalDeviceGetPropertiesDelegate commandDelegate = commandCache.GetCommandDelegate <SharpVk.Interop.VkPhysicalDeviceGetPropertiesDelegate>("vkGetPhysicalDeviceProperties", ""); commandDelegate(this.handle, &marshalledProperties); result = SharpVk.PhysicalDeviceProperties.MarshalFrom(&marshalledProperties); return(result); } finally { Interop.HeapUtil.FreeAll(); } }