#include <Resource.hpp>
◆ RHIBuffer()
◆ CreateAliasedBuffer()
◆ DebugSetObjectName()
| virtual void Foundation::RHI::RHIBuffer::DebugSetObjectName |
( |
const char * |
name | ) |
|
|
pure virtual |
◆ DestroyAliasedBuffer()
| virtual void Foundation::RHI::RHIBuffer::DestroyAliasedBuffer |
( |
Handle |
handle | ) |
|
|
pure virtual |
◆ Flush()
| virtual void Foundation::RHI::RHIBuffer::Flush |
( |
size_t |
offset = 0, |
|
|
size_t |
size = kFullSize |
|
) |
| |
|
pure virtual |
◆ GetAliasedBuffer()
| virtual RHIBuffer * Foundation::RHI::RHIBuffer::GetAliasedBuffer |
( |
Handle |
handle | ) |
const |
|
pure virtual |
◆ GetAllocationSize()
| virtual size_t Foundation::RHI::RHIBuffer::GetAllocationSize |
( |
| ) |
const |
|
pure virtual |
◆ Map() [1/2]
template<typename T >
| T * Foundation::RHI::RHIBuffer::Map |
( |
| ) |
|
|
inline |
◆ Map() [2/2]
| virtual void * Foundation::RHI::RHIBuffer::Map |
( |
| ) |
|
|
pure virtual |
Maps the entire buffer to the host memory. Alignment is implementation-defined. Implementations MUST guarantee consecutive calls to Map() return the same pointer, therefore it's not possible to map the same resource multiple times. For caching behaviours, RHIBufferDesc.
Implemented in Foundation::RHI::VulkanBuffer.
◆ MapSpan()
template<typename T >
| Span< T > Foundation::RHI::RHIBuffer::MapSpan |
( |
size_t |
count = kFullSize | ) |
|
|
inline |
Creates a span that maps a contiguous region of the buffer to the host memory. Behaviour of the memory access is defined by the resource itself. e.g. RO/RW. It is undefined behaviour to access the memory without regard to the resource's host access type. For detailed mapping behaviour, Map
- Parameters
-
◆ Unmap()
| virtual void Foundation::RHI::RHIBuffer::Unmap |
( |
| ) |
|
|
pure virtual |
Releases or unmaps a previously mapped resource. Implementations MUST guarantee that Unmap() is called at destruction time if the resource is still mapped.
Implemented in Foundation::RHI::VulkanBuffer.
◆ mDesc
◆ mDevice
| const RHIDevice& Foundation::RHI::RHIBuffer::mDevice |
|
protected |
The documentation for this class was generated from the following file: