Open 3D Engine Atom Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::Metal::MetalResource Class Referencefinal

Inherits AZ::RHI::Object.

Public Member Functions

 AZ_CLASS_ALLOCATOR (MetalResource, AZ::SystemAllocator)
 
 AZ_RTTI (MetalResource, "{ED5953FB-6B4B-4A3B-9566-7561EC284687}", RHI::Object)
 
ResourceType GetResourceType () const
 
void * GetCpuAddress () const
 
template<typename T >
GetGpuAddress () const
 
uint64_t GetHash () const
 
void OverrideResource (id< MTLTexture > mtlTexture)
 
- Public Member Functions inherited from AZ::RHI::Object
 AZ_RTTI (Object, "{E43378F1-2331-4173-94B8-990ED20E6003}")
 
void SetName (const Name &name)
 Sets the name of the object.
 
const Name & GetName () const
 Returns the name set on the object by SetName.
 
uint32_t use_count ()
 Returns the current use count of the object.
 

Static Public Member Functions

static RHI::Ptr< MetalResourceCreate (const MetalResourceDescriptor &metalResourceDescriptor)
 

Additional Inherited Members

- Protected Member Functions inherited from AZ::RHI::Object
void add_ref () const
 
void release () const
 
- Protected Attributes inherited from AZ::RHI::Object
AZStd::atomic_int m_useCount = 0
 

Member Function Documentation

◆ OverrideResource()

void AZ::Metal::MetalResource::OverrideResource ( id< MTLTexture >  mtlTexture)
inline

This function is setup for swapchain texture to override the native pointer as for metal we get the swapchain texture from the drivers at the end of every frame by requesting the nextdrawable from the CAMetalLayer.


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