microsoft / microsoft/win32metadata

[Direct3D12] Have `D3D12_RENDER_TARGET_BLEND_DESC::RenderTargetWriteMask` be of type `D3D12_COLOR_WRITE_ENABLE`

Open
#2,087 1 comment 0 reactions 0 assignees View on GitHub
question
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.