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

Inherits AZ::DX12::MemoryView.

Public Member Functions

 BufferMemoryView (const MemoryView &memoryView, BufferMemoryType memoryType)
 
 BufferMemoryView (MemoryView &&memoryView, BufferMemoryType memoryType)
 
 BufferMemoryView (const BufferMemoryView &rhs)=default
 Supports copy and move construction / assignment.
 
 BufferMemoryView (BufferMemoryView &&rhs)=default
 
BufferMemoryViewoperator= (const BufferMemoryView &rhs)=default
 
BufferMemoryViewoperator= (BufferMemoryView &&rhs)=default
 
BufferMemoryType GetType () const
 
- Public Member Functions inherited from AZ::DX12::MemoryView
 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.
 

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