UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ShapeInstanceFwd.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "Containers/Array.h"
9#include "ImplicitFwd.h"
10#include <type_traits>
11
12// @todo(chaos): use TRefCountPtr rather than TSharedPtr below - it is smaller (one atomic int instead of 2 atomic ints and 2 pointers)
13
14namespace Chaos
15{
16 // Legacy names
17 class FPerShapeData;
19
20 // Game thread ShapeInstance
25
26 // Physics thread ShapeInstance
27 class FShapeInstance;
31
32 template<EThreadContext Id>
33 using TThreadShapeInstance = std::conditional_t<Id == EThreadContext::External, FShapeInstanceProxy, FShapeInstance>;
34
35 template<EThreadContext Id>
36 using TThreadShapeInstanceArray = std::conditional_t<Id == EThreadContext::External, FShapeInstanceProxyArray, FShapeInstanceArray>;
37}
Definition ShapeInstance.h:260
Definition ShapeInstance.h:554
Definition Array.h:670
Definition ContainerAllocationPolicies.h:894
Definition UniquePtr.h:107
Definition SkeletalMeshComponent.h:307
std::conditional_t< Id==EThreadContext::External, FShapeInstanceProxyArray, FShapeInstanceArray > TThreadShapeInstanceArray
Definition ShapeInstanceFwd.h:36
std::conditional_t< Id==EThreadContext::External, FShapeInstanceProxy, FShapeInstance > TThreadShapeInstance
Definition ShapeInstanceFwd.h:33