UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ClothVertBoneData.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "ClothVertBoneData.generated.h"
6
7// Bone data for a vertex
10{
12
14 : NumInfluences(0)
15 {
16 FMemory::Memset(BoneIndices, (uint8)INDEX_NONE, sizeof(BoneIndices));
17 FMemory::Memset(BoneWeights, 0, sizeof(BoneWeights));
18 }
19
20 // MAX_TOTAL_INFLUENCES = 12 is defined in GPUSkinPublicDefs.h, but that would
21 // require a dependency on Engine, which we can't have here. Until that can
22 // be migrated elsewhere (not to mention if), we make a redundant variable
23 // with an 8 in it, that needs to stay in sync with MAX_TOTAL_INFLUENCES.
24 static const int8 MaxTotalInfluences = 12;
25
26 // Number of influences for this vertex.
27 UPROPERTY()
29
30 // Up to MAX_TOTAL_INFLUENCES bone indices that this vert is weighted to
31 UPROPERTY()
32 uint16 BoneIndices[MaxTotalInfluences];
33
34 // The weights for each entry in BoneIndices
35 UPROPERTY()
36 float BoneWeights[MaxTotalInfluences];
37};
38
@ INDEX_NONE
Definition CoreMiscDefines.h:150
FPlatformTypes::int8 int8
An 8-bit signed integer.
Definition Platform.h:1121
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define USTRUCT(...)
Definition ObjectMacros.h:746
uint8_t uint8
Definition binka_ue_file_header.h:8
uint16_t uint16
Definition binka_ue_file_header.h:7
Definition ClothVertBoneData.h:10
static UE_FORCEINLINE_HINT void * Memset(void *Dest, uint8 Char, SIZE_T Count)
Definition UnrealMemory.h:119