feat(voxel): Add 3D Storage Buffer / Texture streaming to 06_voxel_renderer

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

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
computer-graphics

Hướng nghiên cứu

Start with examples/06_voxel_renderer/src/main.rs and shaders/voxel.wgsl to trace how get_voxel() supplies terrain, then read crates/lgpu/src/buffer.rs for storage buffer allocation and write_at(). The issue proposes a GPU backed voxel grid and mouse driven editing; done means the renderer streams voxel data and users can place and mine blocks interactively.

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

Mô tả

enhancement help wanted
Summary

The real-time voxel renderer in examples/06_voxel_renderer currently evaluates procedural terrain directly in the fragment shader via get_voxel().

To enable an interactive voxel sandbox where users can place and mine blocks in real time, the world volume can be backed by a GPU storage buffer or 3D storage image.

Proposed Architecture
  1. Allocate an lgpu::Buffer with BufferUsage::STORAGE representing the voxel grid (e.g., 28 \times 64 \times 128$ bytes $\approx 1$ MB).
  2. Register the buffer into lgpu's global bindless descriptor heap (buffer.id()).
  3. Access the storage buffer in voxel.wgsl using the bindless ID.
  4. Add mouse click handling to pick the targeted voxel and update it dynamically on the GPU using buffer.write_at().
Relevant Code
  • examples/06_voxel_renderer/src/main.rs
  • examples/06_voxel_renderer/shaders/voxel.wgsl
  • crates/lgpu/src/buffer.rs
Ngôn ngữ chính
Rust
Star
8
Fork
1
Merge trung bình
1 giờ 45 phút
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 kuntal-devrat/lgpu

Tất cả issue của kuntal-devrat/lgpu

Issue tương tự

Thêm issue về Rust

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.