/// <summary> /// Reports capabilities of a physical device. /// </summary> public unsafe SharpVk.PhysicalDeviceFeatures GetFeatures() { try { SharpVk.PhysicalDeviceFeatures result = default(SharpVk.PhysicalDeviceFeatures); SharpVk.Interop.PhysicalDeviceFeatures marshalledFeatures = default(SharpVk.Interop.PhysicalDeviceFeatures); Interop.Commands.vkGetPhysicalDeviceFeatures(this.handle, &marshalledFeatures); result = SharpVk.PhysicalDeviceFeatures.MarshalFrom(&marshalledFeatures); return(result); } finally { Interop.HeapUtil.FreeAll(); } }
/// <summary> /// Reports capabilities of a physical device. /// </summary> public unsafe SharpVk.PhysicalDeviceFeatures GetFeatures() { try { SharpVk.PhysicalDeviceFeatures result = default(SharpVk.PhysicalDeviceFeatures); SharpVk.Interop.PhysicalDeviceFeatures marshalledFeatures = default(SharpVk.Interop.PhysicalDeviceFeatures); SharpVk.Interop.VkPhysicalDeviceGetFeaturesDelegate commandDelegate = commandCache.GetCommandDelegate <SharpVk.Interop.VkPhysicalDeviceGetFeaturesDelegate>("vkGetPhysicalDeviceFeatures", ""); commandDelegate(this.handle, &marshalledFeatures); result = SharpVk.PhysicalDeviceFeatures.MarshalFrom(&marshalledFeatures); return(result); } finally { Interop.HeapUtil.FreeAll(); } }