/// <summary> /// /// </summary> /// <param name="pointer"> /// </param> internal unsafe void MarshalTo(SharpVk.Interop.PhysicalDeviceVulkan11Properties *pointer) { pointer->SType = StructureType.PhysicalDeviceVulkan11Properties; pointer->Next = null; Interop.HeapUtil.MarshalTo(this.DeviceUUID, Constants.UuidSize, pointer->DeviceUUID); Interop.HeapUtil.MarshalTo(this.DriverUUID, Constants.UuidSize, pointer->DriverUUID); Interop.HeapUtil.MarshalTo(this.DeviceLUID, Constants.LuidSize, pointer->DeviceLUID); pointer->DeviceNodeMask = this.DeviceNodeMask; pointer->DeviceLUIDValid = this.DeviceLUIDValid; pointer->SubgroupSize = this.SubgroupSize; pointer->SubgroupSupportedStages = this.SubgroupSupportedStages; pointer->SubgroupSupportedOperations = this.SubgroupSupportedOperations; pointer->SubgroupQuadOperationsInAllStages = this.SubgroupQuadOperationsInAllStages; pointer->PointClippingBehavior = this.PointClippingBehavior; pointer->MaxMultiviewViewCount = this.MaxMultiviewViewCount; pointer->MaxMultiviewInstanceIndex = this.MaxMultiviewInstanceIndex; pointer->ProtectedNoFault = this.ProtectedNoFault; pointer->MaxPerSetDescriptors = this.MaxPerSetDescriptors; pointer->MaxMemoryAllocationSize = this.MaxMemoryAllocationSize; }
/// <summary> /// /// </summary> /// <param name="pointer"> /// </param> internal static unsafe PhysicalDeviceVulkan11Properties MarshalFrom(SharpVk.Interop.PhysicalDeviceVulkan11Properties *pointer) { PhysicalDeviceVulkan11Properties result = default(PhysicalDeviceVulkan11Properties); result.DeviceUUID = new Guid(Interop.HeapUtil.MarshalFrom(pointer->DeviceUUID, Constants.UuidSize)); result.DriverUUID = new Guid(Interop.HeapUtil.MarshalFrom(pointer->DriverUUID, Constants.UuidSize)); result.DeviceLUID = new Guid(Interop.HeapUtil.MarshalFrom(pointer->DeviceLUID, Constants.LuidSize)); result.DeviceNodeMask = pointer->DeviceNodeMask; result.DeviceLUIDValid = pointer->DeviceLUIDValid; result.SubgroupSize = pointer->SubgroupSize; result.SubgroupSupportedStages = pointer->SubgroupSupportedStages; result.SubgroupSupportedOperations = pointer->SubgroupSupportedOperations; result.SubgroupQuadOperationsInAllStages = pointer->SubgroupQuadOperationsInAllStages; result.PointClippingBehavior = pointer->PointClippingBehavior; result.MaxMultiviewViewCount = pointer->MaxMultiviewViewCount; result.MaxMultiviewInstanceIndex = pointer->MaxMultiviewInstanceIndex; result.ProtectedNoFault = pointer->ProtectedNoFault; result.MaxPerSetDescriptors = pointer->MaxPerSetDescriptors; result.MaxMemoryAllocationSize = pointer->MaxMemoryAllocationSize; return(result); }