framebufferResized bug inherited from original tutorial

未關閉 適合新手
#555 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 10 天內回覆

還沒有人認領這個 Issue。

評估

難度
1/5
預估耗時
1 小時以內
新手友好度
84/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
cpp
領域
documentation

研究方向

開啟 issue 中連結的交換鏈重建教學章節,檢查 framebufferResized 條件以及 Vulkan 結果碼的處理方式。修改條件前,先確認 C++ binding 的成功列舉;完成標準是調整大小處理不會掩蓋其他錯誤結果,且教學範例使用正確的列舉。

由索引模型根據 Issue 內容生成。

描述

In this section:
https://docs.vulkan.org/tutorial/latest/03_Drawing_a_triangle/04_Swap_chain_recreation.html#_handling_resizes_explicitly

This code is incorrect:

if (result == vk::Result::eErrorOutOfDateKHR || result == vk::Result::eSuboptimalKHR || framebufferResized)

It should be:

if (result == vk::Result::eErrorOutOfDateKHR || result == vk::Result::eSuboptimalKHR || (result == vk::Result::Success && framebufferResized))

Otherwise, framebufferResized=true prevents the detection of all other VkResult error codes.

(I don't know if the enum is actually called vk::Result::Success, please verify before updating. I don't use the C++ bindings.)

主要語言
C++
星號
447
分支
149
平均合併
11 天 10 小時
30 天內合併 PR
11

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

KhronosGroup/Vulkan-Tutorial 的其他 Issue

查看 KhronosGroup/Vulkan-Tutorial 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。