UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SkeletalMeshVertexAttribute.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6
7#include "SkeletalMeshVertexAttribute.generated.h"
8
9
11
12
13UENUM()
15{
16 Float UMETA(DisplayName="Float", ToolTip="Store the vertex attribute values as a 32-bit floating point (float)"),
17 HalfFloat UMETA(DisplayName="Half-float", ToolTip="Store the vertex attribute values as a 16-bit floating point (half)"),
18 NUInt8 UMETA(DisplayName="8-bit Unsigned Normalized", ToolTip="Quantize and store the vertex attribute values as an unsigned normalized 8-bit integer. Values outside the [0.0 - 1.0] range are clamped."),
19 // Commented out until we have PixelFormat support for these types.
20 // NSInt8 UMETA(DisplayName="8-bit Signed Normalized", ToolTip="Quantize and store the vertex attribute values as a signed normalized 8-bit integer. Values outside the [-1.0 - 1.0] range are clamped."),
21 // NUInt16 UMETA(DisplayName="16-bit Unsigned Normalized", ToolTip="Quantize and store the vertex attribute values as an unsigned normalized 16-bit integer. Values outside the [0.0 - 1.0] range are clamped."),
22 // NSInt16 UMETA(DisplayName="16-bit Signed Normalized", ToolTip="Quantize and store the vertex attribute values as a signed normalized 16-bit integer. Values outside the [-1.0 - 1.0] range are clamped.")
23};
24
25
27USTRUCT()
29{
31
32
33 UPROPERTY(EditAnywhere, Category="Vertex Attributes")
34 FPerPlatformBool EnabledForRender = false;
35
37 UPROPERTY(VisibleAnywhere, Category="Vertex Attributes")
39
41 UPROPERTY(EditAnywhere, Category="Vertex Attributes")
43
45 ENGINE_API bool IsEnabledForRender() const;
46};
47
48#if WITH_EDITORONLY_DATA
49
52{
54 ESkeletalMeshVertexAttributeDataType DataType = ESkeletalMeshVertexAttributeDataType::Float;
55
58 TArray<float> Values;
59
61 int32 ComponentCount;
62
64};
65
66#endif
67
68
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
FArchive & operator<<(FArchive &Ar, FEnvQueryDebugProfileData::FStep &Data)
Definition EnvQueryTypes.cpp:489
@ Vertex
Definition MetalRHIPrivate.h:223
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UENUM(...)
Definition ObjectMacros.h:749
#define USTRUCT(...)
Definition ObjectMacros.h:746
ESkeletalMeshVertexAttributeDataType
Definition SkeletalMeshVertexAttribute.h:15
Definition Archive.h:1208
virtual void Serialize(void *V, int64 Length)
Definition Archive.h:1689
Definition NameTypes.h:617
Definition SkeletalMeshAttributeVertexBuffer.h:12
Definition Array.h:670
Definition UnrealString.h.inl:34
@ false
Definition radaudio_common.h:23
Definition PerPlatformProperties.h:384
Definition SkeletalMeshVertexAttribute.h:29
Definition SkeletalMeshVertexAttribute.h:70
ENGINE_API FSkeletalMeshAttributeVertexBuffer * GetAttributeBuffer(FName InName) const
Definition SkeletalMeshVertexAttribute.cpp:76
ENGINE_API bool AddAttribute(const FName InName, const ESkeletalMeshVertexAttributeDataType InDataType, const int32 InNumVertices, const int32 InComponentCount, const TArray< float > &InValues)
Definition SkeletalMeshVertexAttribute.cpp:36
ENGINE_API void CleanUp()
Definition SkeletalMeshVertexAttribute.cpp:101
ENGINE_API void InitResources()
Definition SkeletalMeshVertexAttribute.cpp:82
friend FArchive & operator<<(FArchive &Ar, FSkeletalMeshVertexAttributeRenderData &RenderData)
Definition SkeletalMeshVertexAttribute.h:91
ENGINE_API void ReleaseResources()
Definition SkeletalMeshVertexAttribute.cpp:91
ENGINE_API ~FSkeletalMeshVertexAttributeRenderData()
Definition SkeletalMeshVertexAttribute.cpp:27
ENGINE_API int32 GetResourceSize() const
Definition SkeletalMeshVertexAttribute.cpp:110