Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Tutorial text and code out of sync: missing queue.waitIdle() in drawFrame() leads to validation error VUID-vkQueueSubmit-pSignalSemaphores-00067

Đang mở Phù hợp với người mới
#525 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
documentation

Hướng nghiên cứu

So sánh en/03_Drawing_a_triangle/03_Drawing/02_Rendering_and_presentation.adoc với code/03_Drawing_a_triangle/02_Rendering_and_presentation/main.cpp, tập trung vào phần mô tả drawFrame() và lời gọi queue.waitIdle(). Quyết định cách hướng dẫn nên ghi lại bước đồng bộ hóa này, sau đó xác minh văn bản khớp với mã và giải thích rõ hành vi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem

The tutorial text and the corresponding code in the repository are out of sync regarding synchronization in drawFrame().

Tutorial text:
en/03_Drawing_a_triangle/03_Drawing/02_Rendering_and_presentation.adoc

In this chapter, drawFrame() is described without any call to queue.waitIdle(). The text uses a single renderFinishedSemaphore that is signaled in vkQueueSubmit and waited on in vkQueuePresentKHR, and it is reused every frame.

Code:
code/03_Drawing_a_triangle/02_Rendering_and_presentation/main.cpp

The code contains an extra line that is not mentioned in the text:

queue.waitIdle(); // NOTE: for simplicity, wait for the queue to be idle before starting the frame
                  // In the next chapter you see how to use multiple frames in flight and fences to sync
Ngôn ngữ chính
C++
Star
432
Fork
133
Merge trung bình
3 ngày 2 giờ
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của KhronosGroup/Vulkan-Tutorial

Tất cả issue của KhronosGroup/Vulkan-Tutorial

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.