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

#include <Resource.h>

Inherits AZ::RHI::Object.

Inherited by AZ::RHI::BufferView, and AZ::RHI::ImageView.

Public Member Functions

virtual const ResourceGetResource () const =0
 Returns the resource associated with this view.
 
virtual const DeviceResourceViewGetDeviceResourceView (int deviceIndex) const =0
 
 AZ_RTTI (ResourceView, "{D7442960-531D-4DCC-B60D-FD26FF75BE51}", Object)
 
- 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.
 

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
 

Detailed Description

ResourceView is a base class for multi-device buffer and image views for polymorphic usage of views in a generic way.

Member Function Documentation

◆ GetResource()

virtual const Resource * AZ::RHI::ResourceView::GetResource ( ) const
pure virtual

Returns the resource associated with this view.

Implemented in AZ::RHI::BufferView, and AZ::RHI::ImageView.


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