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