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< BufferMemory > | GetAllocation () const |
Returns the allocation that the View represents. | |
Represents View of a BufferMemory object.