Added initializer for VkCommandPoolCreateInfo

This commit is contained in:
saschawillems 2016-02-24 21:14:28 +01:00
parent 2c5e6f1d0e
commit 86b13eb84c
2 changed files with 8 additions and 0 deletions

View file

@ -364,6 +364,13 @@ VkCommandBufferAllocateInfo vkTools::initializers::commandBufferAllocateInfo(VkC
return commandBufferAllocateInfo; return commandBufferAllocateInfo;
} }
VkCommandPoolCreateInfo vkTools::initializers::commandPoolCreateInfo()
{
VkCommandPoolCreateInfo cmdPoolCreateInfo = {};
cmdPoolCreateInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;
return cmdPoolCreateInfo;
}
VkCommandBufferBeginInfo vkTools::initializers::commandBufferBeginInfo() VkCommandBufferBeginInfo vkTools::initializers::commandBufferBeginInfo()
{ {
VkCommandBufferBeginInfo cmdBufferBeginInfo = {}; VkCommandBufferBeginInfo cmdBufferBeginInfo = {};

View file

@ -96,6 +96,7 @@ namespace vkTools
VkCommandBufferLevel level, VkCommandBufferLevel level,
uint32_t bufferCount); uint32_t bufferCount);
VkCommandPoolCreateInfo commandPoolCreateInfo();
VkCommandBufferBeginInfo commandBufferBeginInfo(); VkCommandBufferBeginInfo commandBufferBeginInfo();
VkRenderPassBeginInfo renderPassBeginInfo(); VkRenderPassBeginInfo renderPassBeginInfo();