VulkanTutorial
VulkanTutorial copied to clipboard
Tutorial for the Vulkan graphics and compute API
When getMaxUsableSampleCount return VK_SAMPLE_COUNT_1_BIT, program crash with error : Validation Error: [ VUID-VkSubpassDescription-pResolveAttachments-00848 ] | MessageID = 0xfad6c3cb | vkCreateRenderPass(): Subpass 0 requests multisample resolve from attachment 0 which has...
In the Descriptor pool and sets chapter, under [Using descriptor sets](https://vulkan-tutorial.com/Uniform_buffers/Descriptor_pool_and_sets#page_Using-descriptor-sets), it is mentioned that before the following lines ``` rasterizer.cullMode = VK_CULL_MODE_BACK_BIT; rasterizer.frontFace = VK_FRONT_FACE_COUNTER_CLOCKWISE; ``` are added, that...
glfwInit should be placed inside an if statement like so ```cpp if (!glfwInit()){ // Handle glfw error. } ``` To handle the glfw error it might be best to throw...
Not a problem yet, but: In the current Vulkan version (1.3), `VK_MAKE_VERSION` has been marked as deprecated. Maybe consider updating the tutorial to teach using `VK_MAKE_API_VERSION`?
When I saw the "best practices" validation feature, I also saw that there was a "synchronization validation" feature, so I enabled both. I saw that my project thus far had...
1. We can install vulkan-loader, MoltenVK and vulkan-layers by Homebrew. 2. Beginning with the 1.3.216 Vulkan SDK, the Vulkan Loader is strictly enforcing the new `VK_KHR_PORTABILITY_subset extension`, it must be...
In most of the examples in this tutorial, this is what is written when creating a swap chain: ```cpp QueueFamilyIndices indices = findQueueFamilies(physicalDevice); uint32_t queueFamilyIndices[] = {indices.graphicsFamily.value(), indices.presentFamily.value()}; if (indices.graphicsFamily...
I followed the tutorial and drew the triangle. When I run MSI afterburner, the console gives me an error: ~~~ validation layer: Validation Error: [ VUID-VkSwapchainCreateInfoKHR-imageFormat-01778 ] Object 0: handle...
The Chinese translation is complete. Request a review.
The HINSTANCE for a window is the HINSTANCE of the module (dll or exe) that contains the window procedure for that window. The previous code returned the HINSTANCE for the...