UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMetalDevice Class Reference

#include <MetalDevice.h>

Public Member Functions

virtual ~FMetalDevice ()
 
void EnumerateFeatureSupport ()
 
bool SupportsFeature (EMetalFeatures InFeature)
 
FMetalResourceHeapGetResourceHeap (void)
 
void EndDrawingViewport (bool bPresent)
 
MTLTexturePtr CreateTexture (FMetalSurface *Surface, MTL::TextureDescriptor *Descriptor)
 
FMetalBufferPtr CreatePooledBuffer (FMetalPooledBufferArgs const &Args)
 
MTLEventPtr CreateEvent ()
 
void DrainHeap ()
 
void GarbageCollect ()
 
uint32 GetDeviceIndex (void) const
 
FMetalTempAllocatorGetTransferAllocator ()
 
FMetalTempAllocatorGetUniformAllocator ()
 
uint32 GetFrameNumberRHIThread ()
 
FMetalCommandQueueGetCommandQueue (EMetalQueueType QueueType)
 
void AddActiveBuffer (MTL::Buffer *Buffer, const NS::Range &Range)
 
void RemoveActiveBuffer (MTL::Buffer *Buffer, const NS::Range &Range)
 
bool ValidateIsInactiveBuffer (MTL::Buffer *Buffer, const NS::Range &Range)
 
MTL::Device * GetDevice ()
 
int32 GetRuntimeDebuggingLevel (void) const
 
void IncrementFrameRHIThread ()
 
dispatch_semaphore_tGetFrameSemaphore ()
 
FMetalCounterSamplerGetCounterSampler ()
 
bool IsShaderValidationEnabled ()
 

Static Public Member Functions

static FMetalDeviceCreateDevice ()
 

Constructor & Destructor Documentation

◆ ~FMetalDevice()

FMetalDevice::~FMetalDevice ( )
virtual

Member Function Documentation

◆ AddActiveBuffer()

void FMetalDevice::AddActiveBuffer ( MTL::Buffer *  Buffer,
const NS::Range &  Range 
)

◆ CreateDevice()

FMetalDevice * FMetalDevice::CreateDevice ( )
static

◆ CreateEvent()

MTLEventPtr FMetalDevice::CreateEvent ( )

◆ CreatePooledBuffer()

FMetalBufferPtr FMetalDevice::CreatePooledBuffer ( FMetalPooledBufferArgs const &  Args)

◆ CreateTexture()

MTLTexturePtr FMetalDevice::CreateTexture ( FMetalSurface Surface,
MTL::TextureDescriptor *  Descriptor 
)

◆ DrainHeap()

void FMetalDevice::DrainHeap ( )

◆ EndDrawingViewport()

void FMetalDevice::EndDrawingViewport ( bool  bPresent)

◆ EnumerateFeatureSupport()

void FMetalDevice::EnumerateFeatureSupport ( )

◆ GarbageCollect()

void FMetalDevice::GarbageCollect ( )

◆ GetCommandQueue()

FMetalCommandQueue & FMetalDevice::GetCommandQueue ( EMetalQueueType  QueueType)
inline

◆ GetCounterSampler()

FMetalCounterSampler * FMetalDevice::GetCounterSampler ( )
inline

◆ GetDevice()

MTL::Device * FMetalDevice::GetDevice ( )
inline

◆ GetDeviceIndex()

uint32 FMetalDevice::GetDeviceIndex ( void  ) const

Get the index of the bound Metal device in the global list of rendering devices.

◆ GetFrameNumberRHIThread()

uint32 FMetalDevice::GetFrameNumberRHIThread ( )
inline

◆ GetFrameSemaphore()

dispatch_semaphore_t & FMetalDevice::GetFrameSemaphore ( )
inline

◆ GetResourceHeap()

FMetalResourceHeap & FMetalDevice::GetResourceHeap ( void  )
inline

◆ GetRuntimeDebuggingLevel()

int32 FMetalDevice::GetRuntimeDebuggingLevel ( void  ) const
inline

◆ GetTransferAllocator()

FMetalTempAllocator * FMetalDevice::GetTransferAllocator ( )
inline

◆ GetUniformAllocator()

FMetalTempAllocator * FMetalDevice::GetUniformAllocator ( )
inline

◆ IncrementFrameRHIThread()

void FMetalDevice::IncrementFrameRHIThread ( )
inline

◆ IsShaderValidationEnabled()

bool FMetalDevice::IsShaderValidationEnabled ( )
inline

◆ RemoveActiveBuffer()

void FMetalDevice::RemoveActiveBuffer ( MTL::Buffer *  Buffer,
const NS::Range &  Range 
)

◆ SupportsFeature()

bool FMetalDevice::SupportsFeature ( EMetalFeatures  InFeature)
inline

◆ ValidateIsInactiveBuffer()

bool FMetalDevice::ValidateIsInactiveBuffer ( MTL::Buffer *  Buffer,
const NS::Range &  Range 
)

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