You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ Note that some examples require specific device features, and if you are on a mu
83
83
84
84
## Shaders
85
85
86
-
Vulkan consumes shaders in an intermediate representation called SPIR-V. This makes it possible to use different shader languages by compiling them to that bytecode format. The primary shader language used here is [GLSL](shaders/glsl), most samples also come with [slang](shaders/slang/) and [HLSL](shaders/hlsl) shader sources, making it easy to compare the differences between those shading languages.
86
+
Vulkan consumes shaders in an intermediate representation called SPIR-V. This makes it possible to use different shader languages by compiling them to that bytecode format. The primary shader language used here is [GLSL](shaders/glsl), most samples also come with [slang](shaders/slang/) and [HLSL](shaders/hlsl) shader sources, making it easy to compare the differences between those shading languages. The [Rust GPU](https://rust-gpu.github.io/) project maintains [Rust](https://www.rust-lang.org/) shader sources in a [separate repo](https://github.com/Rust-GPU/VulkanShaderExamples/tree/master/shaders/rust).
@@ -915,7 +917,7 @@ class VulkanExample : public VulkanExampleBase
915
917
// Get the next swap chain image from the implementation
916
918
// Note that the implementation is free to return the images in any order, so we must use the acquire function and can't just cycle through the images/imageIndex on our own
917
919
uint32_t imageIndex;
918
-
VkResult result = vkAcquireNextImageKHR(device, swapChain.swapChain, UINT64_MAX, presentCompleteSemaphores[currentSemaphore], VK_NULL_HANDLE, &imageIndex);
920
+
VkResult result = vkAcquireNextImageKHR(device, swapChain.swapChain, UINT64_MAX, presentCompleteSemaphores[currentFrame], VK_NULL_HANDLE, &imageIndex);
919
921
if (result == VK_ERROR_OUT_OF_DATE_KHR) {
920
922
windowResize();
921
923
return;
@@ -1011,10 +1013,10 @@ class VulkanExample : public VulkanExampleBase
1011
1013
submitInfo.commandBufferCount = 1; // We submit a single command buffer
1012
1014
1013
1015
// Semaphore to wait upon before the submitted command buffer starts executing
@@ -701,7 +703,7 @@ class VulkanExample : public VulkanExampleBase
701
703
// Get the next swap chain image from the implementation
702
704
// Note that the implementation is free to return the images in any order, so we must use the acquire function and can't just cycle through the images/imageIndex on our own
703
705
uint32_t imageIndex{ 0 };
704
-
VkResult result = vkAcquireNextImageKHR(device, swapChain.swapChain, UINT64_MAX, presentCompleteSemaphores[currentSemaphore], VK_NULL_HANDLE, &imageIndex);
706
+
VkResult result = vkAcquireNextImageKHR(device, swapChain.swapChain, UINT64_MAX, presentCompleteSemaphores[currentFrame], VK_NULL_HANDLE, &imageIndex);
705
707
if (result == VK_ERROR_OUT_OF_DATE_KHR) {
706
708
windowResize();
707
709
return;
@@ -788,10 +790,10 @@ class VulkanExample : public VulkanExampleBase
788
790
submitInfo.commandBufferCount = 1; // We submit a single command buffer
789
791
790
792
// Semaphore to wait upon before the submitted command buffer starts executing
0 commit comments