Fixed flicering (it was missmatched indices

This commit is contained in:
Alexandre 2026-04-07 19:30:11 +02:00
parent 639f54c7bf
commit d733b641b8
2 changed files with 43 additions and 3 deletions

42
.gitignore vendored
View File

@ -1 +1,41 @@
build # Build directories
build/
build-*/
cmake-build-*/
# CMake generated files
CMakeFiles/
CMakeCache.txt
cmake_install.cmake
Makefile
# Compiled objects
*.o
*.obj
*.so
*.dll
*.exe
*.out
# Static / dynamic libs
*.a
*.lib
# Debug / logs
*.log
# IDE / editors
.vscode/
.idea/
*.swp
# OS files
.DS_Store
Thumbs.db
# direnv
.direnv/
# Nix flakes
result
result-*

View File

@ -403,7 +403,7 @@ class HelloTriangleApplication {
#ifdef DEBUG #ifdef DEBUG
std::cout << "Logical device created\n"; std::cout << "Logical device created\n";
#endif #endif
} }
void createSurface() { void createSurface() {
#ifdef DEBUG #ifdef DEBUG
@ -1022,7 +1022,7 @@ class HelloTriangleApplication {
commandBuffer.begin( {} ); commandBuffer.begin( {} );
transition_image_layout( transition_image_layout(
swapChainImages[frameIndex], swapChainImages[imageIndex],
vk::ImageLayout::eUndefined, vk::ImageLayout::eUndefined,
vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::eColorAttachmentOptimal,
{}, {},