#include <BufferView.h>
Inherits AZ::RHI::ResourceView.
Public Member Functions | |
| AZ_RTTI (BufferView, "{AB366B8F-F1B7-45C6-A0D8-475D4834FAD2}", ResourceView) | |
| BufferView (const RHI::Buffer *buffer, BufferViewDescriptor descriptor, MultiDevice::DeviceMask deviceMask) | |
| const RHI::Ptr< RHI::DeviceBufferView > | GetDeviceBufferView (int deviceIndex) const |
| Given a device index, return the corresponding DeviceBufferView for the selected device. | |
| const RHI::Buffer * | GetBuffer () const |
| Return the contained multi-device buffer. | |
| const BufferViewDescriptor & | GetDescriptor () const |
| Return the contained BufferViewDescriptor. | |
| AZStd::unordered_map< int, uint32_t > | GetBindlessReadIndex () const |
| const DeviceResourceView * | GetDeviceResourceView (int deviceIndex) const override |
| Interface for the two derived classes to return a DeviceResourceView. | |
| bool | GetBindlessIndices (int deviceIndex, uint32_t *outReadIndex, uint32_t *outReadWriteIndex=nullptr) const |
| AZStd::unordered_map< int, uint64_t > | GetDeviceAddress () const |
| Returns the GPU address of this BufferView for each device. | |
Public Member Functions inherited from AZ::RHI::ResourceView | |
| AZ_RTTI (ResourceView, "{D7442960-531D-4DCC-B60D-FD26FF75BE51}", Object) | |
| ResourceView (const RHI::Resource *resource, MultiDevice::DeviceMask deviceMask) | |
| const Resource * | GetResource () const |
| Returns the resource associated with this view. | |
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::ResourceView | |
| template<typename View , typename ViewDescriptor > | |
| const RHI::Ptr< View > | GetDeviceResourceView (int deviceIndex, const ViewDescriptor &viewDescriptor) const |
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 |
A BufferView is a light-weight representation of a view onto a multi-device buffer. It holds a ConstPtr to a multi-device buffer as well as a BufferViewDescriptor Using both, single-device BufferViews can be retrieved
|
inlineoverridevirtual |
Interface for the two derived classes to return a DeviceResourceView.
Implements AZ::RHI::ResourceView.