Commit Graph

7 Commits

Author SHA1 Message Date
Steve Robb
490ff52780 Deprecation of TStaticArray's multi-element init constructor, to avoid confusion of something like TStaticArray<FVector4>(NoInit) and TStaticArray<FVector4>(InPlace, NoInit) producing very different codegen (worse in the original case).
#rb yuriy.odonnell
#jira none

[CL 16053261 by Steve Robb in ue5-main branch]
2021-04-19 14:34:13 -04:00
halfdan ingvarsson
5667fa808f MeshDescription: Add SortByPredicate, StableSortByPredicate and SetNumUninitialized to TArrayAttribute
#rb Richard.TalbotWatkins
#jira none
#rnx

[CL 15158781 by halfdan ingvarsson in ue5-main branch]
2021-01-21 16:22:54 -04:00
Richard TalbotWatkin
014ea87dce Changed TArrayAttribute to hold a pointer to the TAttributeArrayContainer instead of a reference. The end result is the same.
[CL 15071623 by Richard TalbotWatkin in ue5-main branch]
2021-01-13 16:34:06 -04:00
Alexis Matte
c5cf822a86 Fix memory allocation in the TArrayAttribute
#rb Richard.talbotwatkin
#jira none

[CL 14859529 by Alexis Matte in ue5-main branch]
2020-12-04 17:06:59 -04:00
Richard TalbotWatkin
71b016ccac MeshAttributeArray improvements:
- allowed TMeshAttributeRef<TArrayView<T>> to be initialized from *any* attribute type, thus providing a generic way of accessing any type of attribute, be it simple, compound or unbounded array.

ArrayAttribute improvements:
- sped up inserting by not requiring every element of a chunk to be valid if it has not yet been used
- added new API to provide Reserve / Add / AddUnique etc

Indexer improvements:
- fixed issue allowing an attribute with a compound index attribute (e.g. int[3]) to be indexed multiple times

#rb Halfdan.Ingvarsson

[CL 14814025 by Richard TalbotWatkin in ue5-main branch]
2020-11-25 17:21:42 -04:00
Richard TalbotWatkin
550fa7be1d Implemented TArrayAttribute constructor for implicit conversion from non-const to const attribute types.
[CL 14651778 by Richard TalbotWatkin in ue5-main branch]
2020-11-04 09:29:34 -04:00
Richard TalbotWatkin
48534ff000 Added unbounded arrays as a new attribute type for mesh attributes. They are registered with RegisterAttribute<T[]>, and accessed with GetAttributesRef<TAttributeArray<T>>.
Removed attribute views.
Refactored MeshAttributeArray implementation.
Added a new GetArrayView() method for all types of TMeshAttributeRefs which can be used generically.
#rb Alexis.Matte

[CL 14651594 by Richard TalbotWatkin in ue5-main branch]
2020-11-04 08:40:25 -04:00