Inherits AZ::Vulkan::MemoryTypeView< VulkanMemoryAllocation >.
Public Member Functions | |
| MemoryView (const Base &memoryView) | |
| MemoryView (RHI::Ptr< VulkanMemoryAllocation > memory, size_t offset, size_t size) | |
| size_t | GetVKMemoryOffset () const |
| VkDeviceMemory | GetNativeDeviceMemory () const |
Public Member Functions inherited from AZ::Vulkan::MemoryTypeView< VulkanMemoryAllocation > | |
| MemoryTypeView (RHI::Ptr< VulkanMemoryAllocation > alloc) | |
| MemoryTypeView (RHI::Ptr< VulkanMemoryAllocation > 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< VulkanMemoryAllocation > | GetAllocation () const |
| Returns the allocation that the View represents. | |