CARLA
Loading...
Searching...
No Matches
FRHIGPUReadbackPool Class Reference

#include <RHIGPUReadbackPool.h>

Public Member Functions

FRHIGPUTextureReadback * Acquire (int32 &OutSlotIndex)
 FRHIGPUReadbackPool (const TCHAR *InDebugName, int32 InMaxSize=4)
void Release (int32 SlotIndex)

Private Attributes

FString DebugName
TArray< bool > InUse
FCriticalSection Lock
int32 MaxSize
TArray< TUniquePtr< FRHIGPUTextureReadback > > Slots

Detailed Description

Definition at line 29 of file RHIGPUReadbackPool.h.

Constructor & Destructor Documentation

◆ FRHIGPUReadbackPool()

FRHIGPUReadbackPool::FRHIGPUReadbackPool ( const TCHAR * InDebugName,
int32 InMaxSize = 4 )
inlineexplicit

Definition at line 33 of file RHIGPUReadbackPool.h.

References DebugName, and MaxSize.

Member Function Documentation

◆ Acquire()

FRHIGPUTextureReadback * FRHIGPUReadbackPool::Acquire ( int32 & OutSlotIndex)

Definition at line 9 of file RHIGPUReadbackPool.cpp.

References DebugName, InUse, Lock, MaxSize, and Slots.

◆ Release()

void FRHIGPUReadbackPool::Release ( int32 SlotIndex)

Definition at line 39 of file RHIGPUReadbackPool.cpp.

References InUse, and Lock.

Member Data Documentation

◆ DebugName

FString FRHIGPUReadbackPool::DebugName
private

Definition at line 50 of file RHIGPUReadbackPool.h.

Referenced by Acquire(), and FRHIGPUReadbackPool().

◆ InUse

TArray<bool> FRHIGPUReadbackPool::InUse
private

Definition at line 49 of file RHIGPUReadbackPool.h.

Referenced by Acquire(), and Release().

◆ Lock

FCriticalSection FRHIGPUReadbackPool::Lock
private

Definition at line 47 of file RHIGPUReadbackPool.h.

Referenced by Acquire(), and Release().

◆ MaxSize

int32 FRHIGPUReadbackPool::MaxSize
private

Definition at line 51 of file RHIGPUReadbackPool.h.

Referenced by Acquire(), and FRHIGPUReadbackPool().

◆ Slots

TArray<TUniquePtr<FRHIGPUTextureReadback> > FRHIGPUReadbackPool::Slots
private

Definition at line 48 of file RHIGPUReadbackPool.h.

Referenced by Acquire().


The documentation for this class was generated from the following files: