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