/// <summary> /// /// </summary> internal static unsafe SubpassDependency2 MarshalFrom(SharpVk.Interop.Khronos.SubpassDependency2 *pointer) { SubpassDependency2 result = default(SubpassDependency2); result.SourceSubpass = pointer->SourceSubpass; result.DestinationSubpass = pointer->DestinationSubpass; result.SourceStageMask = pointer->SourceStageMask; result.DestinationStageMask = pointer->DestinationStageMask; result.SourceAccessMask = pointer->SourceAccessMask; result.DestinationAccessMask = pointer->DestinationAccessMask; result.DependencyFlags = pointer->DependencyFlags; result.ViewOffset = pointer->ViewOffset; return(result); }
/// <summary> /// /// </summary> internal unsafe void MarshalTo(SharpVk.Interop.Khronos.SubpassDependency2 *pointer) { pointer->SType = StructureType.SubpassDependency2; pointer->Next = null; pointer->SourceSubpass = this.SourceSubpass; pointer->DestinationSubpass = this.DestinationSubpass; pointer->SourceStageMask = this.SourceStageMask; pointer->DestinationStageMask = this.DestinationStageMask; if (this.SourceAccessMask != null) { pointer->SourceAccessMask = this.SourceAccessMask.Value; } else { pointer->SourceAccessMask = default(SharpVk.AccessFlags); } if (this.DestinationAccessMask != null) { pointer->DestinationAccessMask = this.DestinationAccessMask.Value; } else { pointer->DestinationAccessMask = default(SharpVk.AccessFlags); } if (this.DependencyFlags != null) { pointer->DependencyFlags = this.DependencyFlags.Value; } else { pointer->DependencyFlags = default(SharpVk.DependencyFlags); } if (this.ViewOffset != null) { pointer->ViewOffset = this.ViewOffset.Value; } else { pointer->ViewOffset = default(int); } }