![]() |
OGRE 2.3.1
Object-Oriented Graphics Rendering Engine
|
Vulkan maps per pool, thus mapping the same pool twice is a common ocurrence. More...
#include <OgreVulkanDynamicBuffer.h>
Public Member Functions | |
VulkanDynamicBuffer (VkDeviceMemory deviceMemory, size_t vboSize, const bool isNonCoherent, const bool hasReadAccess, VulkanDevice *device) | |
~VulkanDynamicBuffer () | |
void | flush (size_t ticket, size_t start, size_t count) |
Flushes the region of the given ticket. start is 0-based. | |
VkDeviceMemory | getDeviceMemory (void) |
bool | isCoherentMemory (void) const |
void *RESTRICT_ALIAS_RETURN | map (size_t start, size_t count, size_t &outTicket) |
Assumes mVboName is already bound to GL_COPY_WRITE_BUFFER!!! | |
void | unmap (size_t ticket) |
Unmaps given ticket (got from. | |
Vulkan maps per pool, thus mapping the same pool twice is a common ocurrence.
Ogre::VulkanDynamicBuffer::VulkanDynamicBuffer | ( | VkDeviceMemory | deviceMemory, |
size_t | vboSize, | ||
const bool | isNonCoherent, | ||
const bool | hasReadAccess, | ||
VulkanDevice * | device | ||
) |
Ogre::VulkanDynamicBuffer::~VulkanDynamicBuffer | ( | ) |
Flushes the region of the given ticket. start is 0-based.
|
inline |
void *RESTRICT_ALIAS_RETURN Ogre::VulkanDynamicBuffer::map | ( | size_t | start, |
size_t | count, | ||
size_t & | outTicket | ||
) |
Assumes mVboName is already bound to GL_COPY_WRITE_BUFFER!!!
Unmaps given ticket (got from.