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