Clarify how descriptor pool capacity is shared across descriptor sets

Đang mở Phù hợp với người mới
#545 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 1 ngày

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

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
85/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

Issue trỏ đến phần Descriptor pool tại 05_Uniform_buffers/01_Descriptor_pool_and_sets.html#_descriptor_pool. Đọc phần đó và làm rõ rằng số lượng descriptor áp dụng cho toàn bộ pool và được dùng chung giữa các set được cấp phát từ pool đó. Hoàn tất khi phần giải thích nêu rõ số lượng là tổng cộng hay tính cho mỗi set.

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

Mô tả

Hi! I was reading the Descriptor pool section and found this sentence a little ambiguous:

We first need to describe which descriptor types our descriptor sets are going to contain and how many of them, using vk::DescriptorPoolSize structures.

I wasn't sure whether the descriptor counts refer to the entire pool or to each descriptor set.

For example, with:

vk::DescriptorPoolSize poolSize{
    .type = vk::DescriptorType::eUniformBuffer,
    .descriptorCount = 3
};

Does this mean 3 uniform buffer descriptors in total, shared by all sets allocated from the pool, or 3 descriptors per set?

The following explanation helps, but I think it would be clearer to state this explicitly. Maybe something like:

These counts are for the entire pool, not for each descriptor set. All descriptor sets allocated from the pool share this capacity.

Thanks for maintaining the tutorial!

Ngôn ngữ chính
C++
Star
444
Fork
145
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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.