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

Inherited by AZ::DX12::BufferMemoryView.

Public Member Functions

 MemoryView (RHI::Ptr< Memory > memory, size_t offset, size_t size, size_t alignment, MemoryViewType viewType)
 
 MemoryView (D3D12MA::Allocation *allocation, RHI::Ptr< Memory > memory, size_t offset, size_t size, size_t alignment, MemoryViewType viewType)
 
 MemoryView (const MemoryAllocation &memAllocation, MemoryViewType viewType)
 
 MemoryView (const MemoryView &rhs)=default
 Supports copy and move construction / assignment.
 
 MemoryView (MemoryView &&rhs)=default
 
MemoryViewoperator= (const MemoryView &rhs)=default
 
MemoryViewoperator= (MemoryView &&rhs)=default
 
bool IsValid () const
 
size_t GetOffset () const
 Returns the offset relative to the base memory address in bytes.
 
size_t GetSize () const
 Returns the size of the memory view region in bytes.
 
size_t GetAlignment () const
 Returns the alignment of the memory view region in bytes.
 
Memory * GetMemory () const
 Returns a pointer to the memory chunk this view is sub-allocated from.
 
D3D12MA::AllocationGetD3d12maAllocation () const
 
CpuVirtualAddress Map (RHI::HostMemoryAccess hostAccess) const
 A convenience method to map the resource region spanned by the view for CPU access.
 
void Unmap (RHI::HostMemoryAccess hostAccess) const
 A convenience method for unmapping the resource region spanned by the view.
 
GpuVirtualAddress GetGpuAddress () const
 Returns the GPU address, offset to match the view.
 
void SetName (const AZStd::string_view &name)
 Sets the name of the ID3D12Resource.
 
void SetName (const AZStd::wstring_view &name)
 Sets the name of the ID3D12Resource.
 

Friends

class BufferMemoryAllocator
 
class ShaderResourceGroupPool
 

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