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

Represents View of a BufferMemory object. More...

#include <BufferMemoryView.h>

Inherits AZ::Vulkan::MemoryTypeView< BufferMemory >.

Public Member Functions

 BufferMemoryView (RHI::Ptr< BufferMemory > memory)
 
const VkBuffer GetNativeBuffer () const
 Returns the Vulkan's Buffer that the this view references.
 
- Public Member Functions inherited from AZ::Vulkan::MemoryTypeView< BufferMemory >
 MemoryTypeView (RHI::Ptr< BufferMemory > alloc)
 
 MemoryTypeView (RHI::Ptr< BufferMemory > alloc, size_t offset, size_t size)
 
bool IsValid () const
 Returns if the MemoryView has a valid value.
 
size_t GetOffset () const
 Returns the offset relative to the memory allocation in bytes.
 
size_t GetSize () const
 Returns the size of the memory view region in bytes.
 
CpuVirtualAddress Map (RHI::HostMemoryAccess hostAccess)
 A convenience method to map the resource region spanned by the view for CPU access.
 
void Unmap (RHI::HostMemoryAccess hostAccess)
 A convenience method for unmapping the resource region spanned by the view.
 
MemoryAllocationType GetAllocationType () const
 Returns the allocation type.
 
void SetName (const AZStd::string_view &name) const
 Sets the name of the underlying memory object. It only applies the name if the allocation is Unique.
 
RHI::Ptr< BufferMemoryGetAllocation () const
 Returns the allocation that the View represents.
 

Detailed Description

Represents View of a BufferMemory object.


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