AllocatorVisualizer could/should implement Default
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- rust
- Domain
- computer-graphics
Research direction
Inspect the AllocatorVisualizer definitions for the Vulkan and DX12 backends and their argument-free new() constructors. Implement Default consistently for both, then run Clippy to verify the new_without_default lint is resolved and the existing test suite still passes.
Written by the indexing model from the issue text.
Description
Hello,
First of all, thank you for the excellent library.
The AllocatorVisualizer struct (both DX12 and Vulkan) are created using the new() function, which notably has no arguments. One might expect it to implement Default for this reason, but it does not.
There's a clippy lint for this: https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
The Rust API guidelines recommend the same: https://rust-lang.github.io/api-guidelines/interoperability.html
- Dominant language
- Rust
- Stars
- 497
- Forks
- 82
- Avg merge
- 18d 17h
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Traverse-Research/gpu-allocator
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Traverse-Research/gpu-allocator#286 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
Traverse-Research/gpu-allocator#313 · 2 comments · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
All issues in Traverse-Research/gpu-allocator
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·