microsoft / microsoft/win32metadata
[Direct3D12] Have `D3D12_RENDER_TARGET_BLEND_DESC::RenderTargetWriteMask` be of type `D3D12_COLOR_WRITE_ENABLE`
- Dominant language
- C++
- Stars
- 1.5k
- Forks
- 149
- Avg merge
- 5d 16h
- Merged PRs (30d)
- 4
Description
### Suggestion
Currently `D3D12_RENDER_TARGET_BLEND_DESC::RenderTargetWriteMask` is of type `u8`.
But the masks are `D3D12_COLOR_WRITE_ENABLE`.
So to use them one must do this:
```rust
D3D12_RENDER_TARGET_BLEND_DESC {
RenderTargetWriteMask: D3D12_COLOR_WRITE_ENABLE_ALL.0 as u8,
..Default::default()
}
```
Contributor guide
Research direction
Trace how D3D12_RENDER_TARGET_BLEND_DESC and D3D12_COLOR_WRITE_ENABLE are represented in the metadata and generated Rust bindings. Confirm the generated RenderTargetWriteMask type matches D3D12_COLOR_WRITE_ENABLE and verify the existing generation or validation checks; done means consumers no longer need the u8 cast shown in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- computer-graphics, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100