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::MemoryView Class Reference

#include <MemoryView.h>

Inherited by AZ::Metal::BufferMemoryView.

Public Member Functions

 MemoryView (RHI::Ptr< Memory > memory, size_t offset, size_t size, size_t alignment)
 
 MemoryView (const MemoryAllocation &memAllocation)
 
 MemoryView (const MemoryView &rhs)=default
 
 MemoryView (MemoryView &&rhs)=default
 
MemoryViewoperator= (const MemoryView &rhs)=default
 
MemoryViewoperator= (MemoryView &&rhs)=default
 
bool IsValid () const
 
size_t GetOffset () const
 
size_t GetSize () const
 
size_t GetAlignment () const
 
MemoryGetMemory () const
 
void SetName (const AZStd::string_view &name)
 
MTLStorageMode GetStorageMode ()
 
void * GetCpuAddress () const
 
template<typename T >
GetGpuAddress () const
 

Friends

class BufferMemoryAllocator
 

Detailed Description

Represents a view into GPU/CPU memory. It contains a pointer to void* for now. The contents will be interpreted slightly differently for buffer and image resources.


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