FGPUSkinCache

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/GPUSkinCache.h

Include

#include "GPUSkinCache.h"

Syntax

class FGPUSkinCache

Variables

Name Description

Protected variable

TArray< FRWBuff...

 

Allocations

Protected variable

bool

 

bRequiresMemoryLimit

Protected variable

TArray< FRHIUno...

 

BuffersToTransition

Protected variable

int32

 

CurrentStagingBufferIndex

Protected variable

TArray< FGPUSki...

 

Entries

Protected variable

uint64

 

ExtraRequiredMemory

Protected variable

int32

 

FlushCounter

Protected variable

TArray< FRWBuff...

 

StagingBuffers

For recompute tangents, holds the data required between compute shaders.

Protected variable

uint64

 

UsedMemoryInBytes

Constructors

Name Description

Public function

FGPUSkinCache

(
    bool bInRequiresMemoryLimit
)

Destructors

Name Description

Public function

~FGPUSkinCache()

Functions

Name Description

Protected function

void

 

Cleanup()

Protected function Static

void

 

CVarSinkFunction()

Protected function

void

 

DispatchUpdateSkinning

(
    FRHICommandListImmediate& RHICmdLi...,
    FGPUSkinCacheEntry* Entry,
    int32 Section,
    uint32 RevisionNumber
)

Protected function

void

 

DispatchUpdateSkinTangents

(
    FRHICommandListImmediate& RHICmdLi...,
    FGPUSkinCacheEntry* Entry,
    int32 SectionIndex
)

Protected function

void

 

DoDispatch

(
    FRHICommandListImmediate& RHICmdLi...,
    FGPUSkinCacheEntry* SkinCacheE...,
    int32 Section,
    int32 RevisionNumber
)

Public function Const

FCachedGeome...

 

GetCachedGeometry

(
    uint32 ComponentId
)

Public function

FCachedGeome...

 

GetCachedGeometry

(
    FGPUSkinCacheEntry* InOutEntry,
    uint32 SectionId
)

Public function

uint64

 

GetExtraRequiredMemoryAndReset()

Public function Static

FGPUSkinBatc...

 

GetFactoryUserData

(
    FGPUSkinCacheEntry* Entry,
    int32 Section
)

Public function Static

void

 

GetShaderBindings

(
    FGPUSkinCacheEntry* Entry,
    int32 Section,
    const FShader* Shader,
    const FGPUSkinPassthroughVertexFact...,
    uint32 BaseVertexIndex,
    FShaderResourceParameter GPUSkinCac...,
    FShaderResourceParameter GPUSkinCac...,
    FMeshDrawSingleShaderBindings& Sha...,
    FVertexInputStreamArray& VertexStr...
)

Protected function Static

FGPUSkinBatc...

 

InternalGetFactoryUserData

(
    FGPUSkinCacheEntry* Entry,
    int32 Section
)

Protected function

void

 

InvalidateAllEntries()

Public function Static

bool

 

IsEntryValid

(
    FGPUSkinCacheEntry* SkinCacheE...,
    int32 Section
)

Public function

void

 

ProcessEntry

(
    FRHICommandListImmediate& RHICmdLi...,
    FGPUBaseSkinVertexFactory* Ver...,
    FGPUSkinPassthroughVertexFactory&#...,
    const FSkelMeshRenderSection& Batc...,
    FSkeletalMeshObjectGPUSkin* Sk...,
    const FMorphVertexBuffer* Morp...,
    const FSkeletalMeshVertexClothBuffe...,
    const FClothSimulData* SimData,
    const FMatrix& ClothLocalToWorld,
    float ClothBlendWeight,
    uint32 RevisionNumber,
    int32 Section,
    FGPUSkinCacheEntry*& InOutEntr...
)

Public function Static

void

 

Release

(
    FGPUSkinCacheEntry*& SkinCache...
)

Protected function Static

void

 

ReleaseSkinCacheEntry

(
    FGPUSkinCacheEntry* SkinCacheE...
)

Public function Static

void

 

SetVertexStreams

(
    FGPUSkinCacheEntry* Entry,
    int32 Section,
    FRHICommandList& RHICmdList,
    FRHIVertexShader* ShaderRHI,
    const FGPUSkinPassthroughVertexFact...,
    uint32 BaseVertexIndex,
    FShaderResourceParameter PreviousSt...
)

Public function

void

 

TransitionAllToReadable

(
    FRHICommandList& RHICmdList,
    EResourceTransitionPipeline Pipelin...
)

Protected function

FRWBuffersAl...

 

TryAllocBuffer

(
    uint32 NumVertices,
    bool WithTangnents
)

Public function

void

 

UpdateSkinWeightBuffer

(
    FGPUSkinCacheEntry* Entry
)

Public function Static

bool

 

UseIntermediateTangents()

Classes

Enums

Name

Description

Public enum

ESkinCacheInitSettings

Constants

Name

Description

CVarSink

NUM_BUFFERS

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss