UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SkeletalMeshDeformerHelpers.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7
8class FRDGBuffer;
12
15{
16public:
17 static constexpr uint32 PosBufferBytesPerElement = 4;
21 static constexpr uint32 ColorBufferBytesPerElement = 4;
22
23#pragma region GetInternals
24
30 bool bInPreviousFrame);
31
38 bool bInPreviousFrame);
39
48
55 bool bInPreviousFrame);
56
59
62
65
68
69#pragma endregion GetInternals
70
71#pragma region SetInternals
72
79
86
93
100
106
107#pragma endregion SetInternals
108
109#pragma region Deprecated
110
111 UE_DEPRECATED(5.6, "AllocateVertexFactoryPositionBuffer requires a FRDGExternalAccessQueue.")
113
116
119
122
125
126#pragma endregion Deprecated
127};
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
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
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition RenderGraphResources.h:1321
Definition RenderGraphBuilder.h:49
Definition RenderGraphUtils.h:1272
Definition RHICommandList.h:455
Definition RHIResources.h:3304
Definition SkeletalMeshDeformerHelpers.h:15
static constexpr uint32 ColorBufferBytesPerElement
Definition SkeletalMeshDeformerHelpers.h:21
static ENGINE_API FRDGBuffer * GetAllocatedColorBuffer(FRDGBuilder &GraphBuilder, FSkeletalMeshObject *InMeshObject, int32 InLodIndex)
Definition SkeletalMeshDeformerHelpers.cpp:123
static ENGINE_API FRHIShaderResourceView * GetMorphTargetBufferForReading(FSkeletalMeshObject const *InMeshObject, int32 InLodIndex, int32 InSectionIndex, uint32 InFrameNumber, bool bInPreviousFrame)
Definition SkeletalMeshDeformerHelpers.cpp:33
static ENGINE_API FRDGBuffer * AllocateVertexFactoryPositionBuffer(FRDGBuilder &GraphBuilder, FRDGExternalAccessQueue &ExternalAccesQueue, FSkeletalMeshObject *InMeshObject, int32 InLodIndex, TCHAR const *InBufferName)
Definition SkeletalMeshDeformerHelpers.cpp:158
static ENGINE_API FRDGBuffer * AllocateVertexFactoryColorBuffer(FRDGBuilder &GraphBuilder, FRDGExternalAccessQueue &ExternalAccesQueue, FSkeletalMeshObject *InMeshObject, int32 InLodIndex, TCHAR const *InBufferName)
Definition SkeletalMeshDeformerHelpers.cpp:299
static ENGINE_API FRDGBuffer * GetAllocatedTangentBuffer(FRDGBuilder &GraphBuilder, FSkeletalMeshObject *InMeshObject, int32 InLodIndex)
Definition SkeletalMeshDeformerHelpers.cpp:104
static ENGINE_API FRHIShaderResourceView * GetBoneBufferForReading(FSkeletalMeshObject const *InMeshObject, int32 InLodIndex, int32 InSectionIndex, bool bInPreviousFrame)
Definition SkeletalMeshDeformerHelpers.cpp:11
static constexpr uint32 PosBufferBytesPerElement
Definition SkeletalMeshDeformerHelpers.h:17
static constexpr uint32 TangentBufferElementMultiplier
Definition SkeletalMeshDeformerHelpers.h:20
static ENGINE_API void UpdateVertexFactoryBufferOverrides(FRHICommandListBase &RHICmdList, FSkeletalMeshObject *InMeshObject, int32 InLodIndex, bool bInvalidatePreviousPosition)
Definition SkeletalMeshDeformerHelpers.cpp:347
static constexpr uint32 PosBufferElementMultiplier
Definition SkeletalMeshDeformerHelpers.h:18
static ENGINE_API int32 GetIndexOfFirstAvailableSection(FSkeletalMeshObject *InMeshObject, int32 InLodIndex)
Definition SkeletalMeshDeformerHelpers.cpp:142
static constexpr uint32 TangentBufferBytesPerElement
Definition SkeletalMeshDeformerHelpers.h:19
static ENGINE_API FRDGBuffer * AllocateVertexFactoryTangentBuffer(FRDGBuilder &GraphBuilder, FRDGExternalAccessQueue &ExternalAccesQueue, FSkeletalMeshObject *InMeshObject, int32 InLodIndex, TCHAR const *InBufferName)
Definition SkeletalMeshDeformerHelpers.cpp:250
static ENGINE_API void ResetVertexFactoryBufferOverrides(FSkeletalMeshObject *InMeshObject, int32 InLodIndex)
Definition SkeletalMeshDeformerHelpers.cpp:420
static ENGINE_API FRDGBuffer * GetAllocatedPositionBuffer(FRDGBuilder &GraphBuilder, FSkeletalMeshObject *InMeshObject, int32 InLodIndex)
Definition SkeletalMeshDeformerHelpers.cpp:85
static ENGINE_API FClothBuffers GetClothBuffersForReading(FSkeletalMeshObject const *InMeshObject, int32 InLodIndex, int32 InSectionIndex, uint32 InFrameNumber, bool bInPreviousFrame)
Definition SkeletalMeshDeformerHelpers.cpp:52
Definition SkeletalRenderPublic.h:85
Definition SkeletalMeshDeformerHelpers.h:42
FMatrix44f ClothToLocal
Definition SkeletalMeshDeformerHelpers.h:46
FRHIShaderResourceView * ClothInfluenceBuffer
Definition SkeletalMeshDeformerHelpers.h:44
int32 ClothInfluenceBufferOffset
Definition SkeletalMeshDeformerHelpers.h:43
FRHIShaderResourceView * ClothSimulatedPositionAndNormalBuffer
Definition SkeletalMeshDeformerHelpers.h:45
static CORE_API const TMatrix Identity
Definition Matrix.h:52