Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="pointer">
        /// </param>
        internal static unsafe SubpassDescriptionDepthStencilResolve MarshalFrom(SharpVk.Interop.SubpassDescriptionDepthStencilResolve *pointer)
        {
            SubpassDescriptionDepthStencilResolve result = default(SubpassDescriptionDepthStencilResolve);

            result.DepthResolveMode   = pointer->DepthResolveMode;
            result.StencilResolveMode = pointer->StencilResolveMode;
            if (pointer->DepthStencilResolveAttachment != null)
            {
                result.DepthStencilResolveAttachment = SharpVk.AttachmentReference2.MarshalFrom(pointer->DepthStencilResolveAttachment);
            }
            else
            {
                result.DepthStencilResolveAttachment = null;
            }
            return(result);
        }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="pointer">
 /// </param>
 internal unsafe void MarshalTo(SharpVk.Interop.SubpassDescriptionDepthStencilResolve *pointer)
 {
     pointer->SType              = StructureType.SubpassDescriptionDepthStencilResolveVersion;
     pointer->Next               = null;
     pointer->DepthResolveMode   = this.DepthResolveMode;
     pointer->StencilResolveMode = this.StencilResolveMode;
     if (this.DepthStencilResolveAttachment != null)
     {
         pointer->DepthStencilResolveAttachment = (SharpVk.Interop.AttachmentReference2 *)(Interop.HeapUtil.Allocate <SharpVk.Interop.AttachmentReference2>());
         this.DepthStencilResolveAttachment.Value.MarshalTo(pointer->DepthStencilResolveAttachment);
     }
     else
     {
         pointer->DepthStencilResolveAttachment = default(SharpVk.Interop.AttachmentReference2 *);
     }
 }