Initializer for mapped memory range

This commit is contained in:
saschawillems 2016-12-20 22:25:33 +01:00
parent b08e9f4074
commit fa3e11153a
2 changed files with 9 additions and 0 deletions

View file

@ -416,6 +416,13 @@ VkMemoryAllocateInfo vkTools::initializers::memoryAllocateInfo()
return memAllocInfo; return memAllocInfo;
} }
VkMappedMemoryRange vkTools::initializers::mappedMemoryRange()
{
VkMappedMemoryRange mappedMemoryRange = {};
mappedMemoryRange.sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE;
return mappedMemoryRange;
}
VkCommandBufferAllocateInfo vkTools::initializers::commandBufferAllocateInfo(VkCommandPool commandPool, VkCommandBufferLevel level, uint32_t bufferCount) VkCommandBufferAllocateInfo vkTools::initializers::commandBufferAllocateInfo(VkCommandPool commandPool, VkCommandBufferLevel level, uint32_t bufferCount)
{ {
VkCommandBufferAllocateInfo commandBufferAllocateInfo = {}; VkCommandBufferAllocateInfo commandBufferAllocateInfo = {};

View file

@ -126,6 +126,8 @@ namespace vkTools
{ {
VkMemoryAllocateInfo memoryAllocateInfo(); VkMemoryAllocateInfo memoryAllocateInfo();
VkMappedMemoryRange mappedMemoryRange();
VkCommandBufferAllocateInfo commandBufferAllocateInfo( VkCommandBufferAllocateInfo commandBufferAllocateInfo(
VkCommandPool commandPool, VkCommandPool commandPool,
VkCommandBufferLevel level, VkCommandBufferLevel level,