public void Dispose()
 {
     Marshal.FreeHGlobal(NativePointer->Stages);
     MemUtil.Free((IntPtr)NativePointer);
     NativePointer = null;
     GC.SuppressFinalize(this);
 }
 public GraphicsPipelineCreateInfo()
 {
     NativePointer        = (Unmanaged.GraphicsPipelineCreateInfo *)MemUtil.Alloc(typeof(Unmanaged.GraphicsPipelineCreateInfo));
     NativePointer->SType = StructureType.GraphicsPipelineCreateInfo;
 }