/// <summary> /// /// </summary> internal static unsafe PhysicalDeviceProperties2 MarshalFrom(SharpVk.Interop.PhysicalDeviceProperties2 *pointer) { PhysicalDeviceProperties2 result = default(PhysicalDeviceProperties2); result.Properties = SharpVk.PhysicalDeviceProperties.MarshalFrom(&pointer->Properties); return(result); }
internal static unsafe PhysicalDeviceProperties2 MarshalFrom(Interop.PhysicalDeviceProperties2 *value) { PhysicalDeviceProperties2 result = new PhysicalDeviceProperties2(); result.Properties = PhysicalDeviceProperties.MarshalFrom(&value->Properties); return(result); }
/// <summary> /// Returns properties of a physical device. /// </summary> public PhysicalDeviceProperties2 GetProperties2() { unsafe { try { var commandDelegate = this.commandCache.GetCommandDelegate <Interop.vkGetPhysicalDeviceProperties2KHR>("vkGetPhysicalDeviceProperties2KHR", "instance"); PhysicalDeviceProperties2 result = default(PhysicalDeviceProperties2); Interop.PhysicalDeviceProperties2 marshalledProperties; commandDelegate(this.handle, &marshalledProperties); result = PhysicalDeviceProperties2.MarshalFrom(&marshalledProperties); return(result); } finally { Interop.HeapUtil.FreeLog(); } } }