vblanco20-1 / vulkan-guide

Introductory guide to vulkan.
https://vkguide.dev/
MIT License
906 stars 203 forks source link

`vkinit::rendering_info` is never mentioned, but first used in IMGUI setup #113

Open triffid opened 3 months ago

triffid commented 3 months ago

I'm following along starting with a blank project, and when I get to https://vkguide.dev/docs/new_chapter_2/vulkan_imgui_setup/#dynamic-rendering it says:

src/vulkan/vk_engine.cpp: In member function ‘void VulkanEngine::draw_imgui(VkCommandBuffer, VkImageView)’:
src/vulkan/vk_engine.cpp:472:46: error: ‘rendering_info’ is not a member of ‘vkinit’
  472 |         VkRenderingInfo renderInfo = vkinit::rendering_info(_swapchainExtent, &colorAttachment, nullptr);

At first I thought I'd simply missed something, but google says I haven't and github search concurs, it's just missing.

It's mentioned a couple more times in chapter 3, but again there's no definition or declaration, just usage.

duckdoom4 commented 1 month ago

Make sure you have included #include <vk_initializers.h>. It should be defined there (line 30 in the header, line 160 in the cpp).

Source is included as part of the Starting point project files