Pointer to mapped host memory for uniform data
This commit is contained in:
parent
884916e083
commit
3faee12381
2 changed files with 5 additions and 0 deletions
|
|
@ -411,6 +411,10 @@ namespace vkTools
|
|||
|
||||
void destroyUniformData(VkDevice device, vkTools::UniformData *uniformData)
|
||||
{
|
||||
if (uniformData->mapped != nullptr)
|
||||
{
|
||||
vkUnmapMemory(device, uniformData->memory);
|
||||
}
|
||||
vkDestroyBuffer(device, uniformData->buffer, nullptr);
|
||||
vkFreeMemory(device, uniformData->memory, nullptr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue