Files
UnrealEngine/Engine/Plugins/TextureGraph/Source/TextureGraphEngine/Data/G_Collectible.cpp
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

20 lines
548 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "G_Collectible.h"
#include "Helper/Util.h"
#include "TextureGraphEngine.h"
#include "Job/JobBatch.h"
void G_Collectible::UpdateAccessInfo(uint64 BatchId /* = 0 */)
{
/// This should never be called from anything other than the game thread
check(IsInGameThread());
if (BatchId == 0)
BatchId = JobBatch::CurrentBatchId();
AccessDetails.Timestamp = Util::Time();
AccessDetails.Count++;
AccessDetails.BatchId = BatchId;
AccessDetails.FrameId = TextureGraphEngine::GetFrameId();
}