Inherits AZ::RHI::Object.
|
| 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 > |
T | GetGpuAddress () const |
|
uint64_t | GetHash () const |
|
void | OverrideResource (id< MTLTexture > mtlTexture) |
|
| 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.
|
|
|
void | add_ref () const |
|
void | release () const |
|
AZStd::atomic_int | m_useCount = 0 |
|
◆ 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:
- Gems/Atom/RHI/Metal/Code/Source/RHI/Memory.h