Constructor TypeInfo
TypeInfo(int, TypeCategory, int, int, ulong, ulong, int, int, int, int, int, int, int, bool, int, int, int, int, int, int, int, ulong)
Used internally to construct a TypeInfo.
Declaration
public TypeInfo(int typeIndex, TypeManager.TypeCategory category, int entityOffsetCount, int entityOffsetStartIndex, ulong memoryOrdering, ulong stableTypeHash, int bufferCapacity, int sizeInChunk, int elementSize, int alignmentInBytes, int maximumChunkCapacity, int writeGroupCount, int writeGroupStartIndex, bool hasBlobRefs, int blobAssetRefOffsetCount, int blobAssetRefOffsetStartIndex, int weakAssetRefOffsetCount, int weakAssetRefOffsetStartIndex, int unityObjectRefOffsetCount, int unityObjectRefOffsetStartIndex, int typeSize, ulong bloomFilterMask = 0)
Parameters
Type | Name | Description |
---|---|---|
int | typeIndex | TypeIndex to use |
TypeManager.TypeCategory | category | TypeCategory the component belongs to |
int | entityOffsetCount | How many entity references a component contains (recursively) |
int | entityOffsetStartIndex | Index into the entity offset array where this component's entity offset data begins |
ulong | memoryOrdering | The memory order for this component |
ulong | stableTypeHash | The stable type hash for this component |
int | bufferCapacity | Number of elements that can be stored in chunk memory before falling back to a native allocation |
int | sizeInChunk | Number of bytes the component requires in a chunk |
int | elementSize | Size of the component. For Buffer components, this is the size of the element type |
int | alignmentInBytes | Alignment of the component |
int | maximumChunkCapacity | Max number of instances of this component to allow in a single chunk |
int | writeGroupCount | Number of write groups targeting this component |
int | writeGroupStartIndex | Index into the write group array where this component's write group info begins |
bool | hasBlobRefs | Value for if this component has any blob references (in case we force this value true/false) |
int | blobAssetRefOffsetCount | Number of blob asset references the component really contains |
int | blobAssetRefOffsetStartIndex | Index into the blob asset reference array where this component's blob asset reference data begins |
int | weakAssetRefOffsetCount | Number of weak asset references this component contains |
int | weakAssetRefOffsetStartIndex | Index into the weak asset reference array where this component's weak asset reference data begins |
int | unityObjectRefOffsetCount | |
int | unityObjectRefOffsetStartIndex | |
int | typeSize | Size of the component type |
ulong | bloomFilterMask | The bloom filter mask for this component, used to accelerate "is type T in set of types S" checks. The default value of zero is safe, but ineffective. |