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