You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb andrew.lauritzen #jira none #preflight 620a2a37015ab8f37a3e2d2c #lockdown juan.canada #ROBOMERGE-AUTHOR: charles.derousiers #ROBOMERGE-SOURCE: CL 18977253 in //UE5/Release-5.0/... via CL 18977320 via CL 18977399 #ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589) [CL 18977416 by charles derousiers in ue5-main branch]
23 lines
483 B
Plaintext
23 lines
483 B
Plaintext
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "../Common.ush"
|
|
|
|
StructuredBuffer< uint > InStatsBuffer;
|
|
RWBuffer< uint > AccumulatedStatsBufferOut;
|
|
uint NumStats;
|
|
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void CopyStatsCS()
|
|
{
|
|
uint Index;
|
|
InterlockedAdd(AccumulatedStatsBufferOut[0], 1, Index);
|
|
if (Index < MAX_STAT_FRAMES)
|
|
{
|
|
for (uint StatInd = 0; StatInd < NumStats; ++StatInd)
|
|
{
|
|
AccumulatedStatsBufferOut[1 + Index * NumStats + StatInd] = InStatsBuffer[StatInd];
|
|
}
|
|
}
|
|
}
|