Use actual texture image layouts for descriptor image infos (instead of always GENERAL), initial image layout as optional parameters for texture loading functions

This commit is contained in:
saschawillems 2017-01-04 22:08:31 +01:00
parent 251560845c
commit b2f224341f
2 changed files with 58 additions and 28 deletions

View file

@ -200,7 +200,8 @@ public:
VK_FORMAT_R8G8B8A8_UNORM,
&textureColorMap,
false,
VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_STORAGE_BIT);
VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_STORAGE_BIT,
VK_IMAGE_LAYOUT_GENERAL);
}
void buildCommandBuffers()