Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3633ad9

Browse files
authored
VK_IMAGE_TILING_LINEAR to VK_IMAGE_TILING_OPTIMAL
in the text it says we'll be using VK_IMAGE_TILING_OPTIMAL, but the code had it set to VK_IMAGE_TILING_LINEAR. Also the code further down the page has it set to VK_IMAGE_TILING_OPTIMAL.
1 parent 6cfdafa commit 3633ad9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

06_Texture_mapping/00_Images.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ for the texels as the pixels in the buffer, otherwise the copy operation will
222222
fail.
223223

224224
```c++
225-
imageInfo.tiling = VK_IMAGE_TILING_LINEAR;
225+
imageInfo.tiling = VK_IMAGE_TILING_OPTIMAL;
226226
```
227227

228228
The `tiling` field can have one of two values:
@@ -721,4 +721,4 @@ the graphics pipeline. We'll work on that in the next chapter.
721721

722722
[C++ code](/code/texture_image.cpp) /
723723
[Vertex shader](/code/shader_ubo.vert) /
724-
[Fragment shader](/code/shader_ubo.frag)
724+
[Fragment shader](/code/shader_ubo.frag)

0 commit comments

Comments
 (0)