Fixed typos

This commit is contained in:
Sascha Willems 2020-08-09 13:38:33 +02:00
parent de035d3572
commit fd5f50f298
3 changed files with 5 additions and 10 deletions

View file

@ -472,7 +472,7 @@ public:
VkFramebuffer framebuffer;
VK_CHECK_RESULT(vkCreateFramebuffer(device, &framebufferCI, nullptr, &framebuffer));
// Desriptors
// Descriptors
VkDescriptorSetLayout descriptorsetlayout;
std::vector<VkDescriptorSetLayoutBinding> setLayoutBindings = {};
VkDescriptorSetLayoutCreateInfo descriptorsetlayoutCI = vks::initializers::descriptorSetLayoutCreateInfo(setLayoutBindings);
@ -927,7 +927,6 @@ public:
vulkanDevice->flushCommandBuffer(cmdBuf, queue);
// todo: cleanup
vkDestroyRenderPass(device, renderpass, nullptr);
vkDestroyFramebuffer(device, offscreen.framebuffer, nullptr);
vkFreeMemory(device, offscreen.memory, nullptr);
@ -1308,7 +1307,6 @@ public:
vulkanDevice->flushCommandBuffer(cmdBuf, queue);
// todo: cleanup
vkDestroyRenderPass(device, renderpass, nullptr);
vkDestroyFramebuffer(device, offscreen.framebuffer, nullptr);
vkFreeMemory(device, offscreen.memory, nullptr);
@ -1327,7 +1325,7 @@ public:
// Prepare and initialize uniform buffer containing shader uniforms
void prepareUniformBuffers()
{
// Objact vertex shader uniform buffer
// Object vertex shader uniform buffer
VK_CHECK_RESULT(vulkanDevice->createBuffer(
VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT,
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT,