in chapter 07_Depth_buffering depthformat is declared locally in createDepthResources and then referenced out of scope in createGraphicsPipeline

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

維護者通常 10 天內回覆

還沒有人認領這個 Issue。

評估

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

研究方向

開啟教學原始碼中的 07_Depth_buffering 章節檔案,找到兩個程式碼片段:createDepthResources,其中 depthFormat 被宣告為區域 VkFormat;以及 createGraphicsPipeline,其中使用了它。與 maintainers 一起決定修正方式是將 depthFormat 提升為成員,還是在兩處都查詢該格式,然後讓這些片段與周圍章節保持一致。完成意味著該章節的範例能如所示編譯,並符合前面章節所用的慣例(比較 04_*/05_*,了解類似成員是如何宣告的)。

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

描述

dont relly know how to describe it iv never relly made an issue before but the title kinda explains enough i think :|

主要語言
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 摘要。