Navigation
API > API/Plugins > API/Plugins/MeshPartition > API/Plugins/MeshPartition/FChannelPacking
Description
In the following table we are indicating the maximum number of packed channels depending on
- the slot N bits representation (in the header row)
- the various possible P number of words (in the header column) +----------------------+-----+-----+-----+-----+ | N | 8 | 6 | 5 | 4 | | [Max index value] | [255] | [ 63] | [ 31] | [ 15] | +----------------------+-----+-----+-----+-----+ | P => Table size [bytes] | | | | | | 1 => 4 | 4 | 5 | 6 | 8 ~ | | 2 => 8 | 8 | 10 | 12 | 15 * | | 3 => 12 | 12 | 15 | 18 ~ | | | 4 => 16 | 16 | 20 | 24 ~ | | | 5 => 20 | 20 | 25 | 30 ~ | | | 6 => 24 | 24 | 30 | 31 * | | | 7 => 28 | 28 | 35 | | | | 8 => 32 | 32 | 40 ~ | | | | 9 => 36 | 36 | 45 ~ | | | | 10 => 40 | 40 | 50 ~ | | | | 11 => 44 | 44 | 55 ~ | | | | 12 => 48 | 48 | 60 ~ | | | | 13 => 52 | 52 | 63 * | | | | ... | ... | | | | | 17 => 68 | 68 ~ | | | | | 18 => 72 | 72 ~ | | | | | ... | ... | | | | | 63 => 252 | 252 ~ | | | | | 64 => 256 | 255 * | | | | +----------------------+-----+-----+-----+-----+ The * cell indicate perfect match between N and P allowing to pack ALL the slot indices possible The ~ cell indicate the best combinaison N and P to pack that many slots value
Practically speaking, with P = 4 and N = 5 we can represent 24 channels and thats our best pick for now
| Name | SetCustomPrimitiveData |
| Type | function |
| Header File | /Engine/Plugins/Experimental/MeshPartition/Source/MeshPartition/Public/MeshPartitionChannel.h |
| Include Path | #include "MeshPartitionChannel.h" |
| Source | /Engine/Plugins/Experimental/MeshPartition/Source/MeshPartition/Private/MeshPartitionChannel.cpp |
static void SetCustomPrimitiveData
(
UPrimitiveComponent * InPrimitiveComponent,
TConstArrayView< uint8 > InChannelTable,
const FVector2f & InChannelTexcoordDesc
)