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