Пример #1
0
        public void Upsert(ref GpuCacheHandle handle, ref T value)
        {
            FreeListHandle freeListHandle = handle.Value;

            if (_slots.ValidateHandle(freeListHandle))
            {
                Span <Vector4> blocks = GetBlocks(freeListHandle.Index);
                value.WriteGpuBlocks(blocks);
                return;
            }

            handle = Insert(ref value);
        }