Skip to content

Missing include (for my setup at least) in Window Surface (optional) chapter #410

@Petrareca

Description

@Petrareca

In en/03_Drawing_a_triangle/01_Presentation/00_Window_surface.md the tutorial mentions adding/updating some includes:
"To access native platform functions, you need to update the includes at the top:

#define VK_USE_PLATFORM_WIN32_KHR
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#define GLFW_EXPOSE_NATIVE_WIN32
#include <GLFW/glfw3native.h>
"
I found that with these includes I wasn't able to use VkWin32SurfaceCreateInfoKHR object.
I added #include <vulkan/vulkan_win32.h> and it works now! Not sure if this is relevant, maybe it was just some issue with my setup. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions