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

#include <MetalBuffer.h>

+ Inheritance diagram for FMetalSubBufferRing:

Public Member Functions

 FMetalSubBufferRing (FMetalDevice &MetalDevice, NS::UInteger Size, NS::UInteger Alignment, MTL::ResourceOptions Options)
 
 ~FMetalSubBufferRing ()
 
MTL::Device * GetDevice () const
 
MTL::StorageMode GetStorageMode () const
 
MTL::CPUCacheMode GetCpuCacheMode () const
 
NS::UInteger GetSize () const
 
FMetalBufferPtr NewBuffer (NS::UInteger Size, uint32 Alignment)
 
virtual void ReleaseBuffer (FMetalBuffer *Buffer) override
 
void Shrink ()
 
void Commit (FMetalCommandBuffer *CmdBuffer)
 

Constructor & Destructor Documentation

◆ FMetalSubBufferRing()

FMetalSubBufferRing::FMetalSubBufferRing ( FMetalDevice MetalDevice,
NS::UInteger  Size,
NS::UInteger  Alignment,
MTL::ResourceOptions  Options 
)

◆ ~FMetalSubBufferRing()

FMetalSubBufferRing::~FMetalSubBufferRing ( )

Member Function Documentation

◆ Commit()

void FMetalSubBufferRing::Commit ( FMetalCommandBuffer CmdBuffer)

Commits a completion handler to the cmd-buffer to release the processed range

◆ GetCpuCacheMode()

MTL::CPUCacheMode FMetalSubBufferRing::GetCpuCacheMode ( ) const

◆ GetDevice()

MTL::Device * FMetalSubBufferRing::GetDevice ( ) const

◆ GetSize()

NS::UInteger FMetalSubBufferRing::GetSize ( ) const

◆ GetStorageMode()

MTL::StorageMode FMetalSubBufferRing::GetStorageMode ( ) const

◆ NewBuffer()

FMetalBufferPtr FMetalSubBufferRing::NewBuffer ( NS::UInteger  Size,
uint32  Alignment 
)

◆ ReleaseBuffer()

virtual void FMetalSubBufferRing::ReleaseBuffer ( FMetalBuffer Buffer)
inlineoverridevirtual

Implements IMetalBufferAllocator.

◆ Shrink()

void FMetalSubBufferRing::Shrink ( )

Tries to shrink the ring-buffer back toward its initial size, but not smaller.


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