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

Document how to do D3D12-style command buffer management in Vulkan

Đang mở
#15 4 bình luận 4 reaction 0 người được giao Xem trên GitHub

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
45/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu bằng cách xem xét cấu trúc hiện có của Vulkan-Guide và tìm một phần hướng dẫn porting phù hợp với chủ đề này. Thêm một phần bao quát các hướng dẫn về quản lý command pool và command buffer được liệt kê trong issue; được xem là hoàn thành khi mẫu sử dụng D3D12-to-Vulkan được ghi lại rõ ràng trong guide.

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

Mô tả

documentation

There's a particular usage pattern for dynamically recorded command buffers which DX12 applications make use of DX12's ability to free-associate command buffers with command allocators, which is not how things naturally work in Vulkan.

Whilst this might not be the ideal method for managing command buffers in all cases, it works, and is natural for anyone porting D3D12 content.

After discussion in the Vulkan WG, we agreed that the following advice is the right way to achieve the same in Vulkan, with no expected perf implications vs DX12:

  • Allocate command pools with VK_COMMAND_POOL_CREATE_TRANSIENT_BIT
  • Treat VkCommandPool objects the same as ID3D12CommandAllocator objects
    • I.e. they are externally synchronized command allocators
  • Don't pre-allocate command buffers
  • Allocate command buffers when you want to begin recording, then begin them
  • When the command buffer is no longer in use, free the command buffer
    • Ideally along with all others associated with the same pool

It would be useful to turn this porting advice into a section of the Vulkan-Guide, possibly alongside other porting advice.

Ngôn ngữ chính
Makefile
Star
2.3k
Fork
198
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-Guide

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

Issue tương tự

Thêm issue về Documentation

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.