diff options
| author | Douglas Sposito <douglas_sposito2015@outlook.com> | 2026-11-22 12:20:23 -0300 |
|---|---|---|
| committer | Douglas Sposito <douglas_sposito2015@outlook.com> | 2026-11-22 12:20:23 -0300 |
| commit | 569bd01d7e15d92a59ceebd99751b07d8aecebc4 (patch) | |
| tree | e50e73d875e45c9f5c54aab959648c8155ea82cb /runtime/src/thread_stacks.cpp | |
| parent | 6a6704df1592e1dc4a3215ddf1423a78adb52045 (diff) | |
Runtime: blends into B8G8R8X8 targets read destination alpha 1 (D3D-240)
B8G8R8X8 has no alpha, and WARP and AMD's D3D12 driver blend into it with
destination alpha 1. Its Vulkan image is BGRA8, so the blend factors that
read destination alpha read the X byte instead. For B8G8R8X8 render
targets the PSO now turns DST_ALPHA into ONE, ONE_MINUS_DST_ALPHA into
ZERO and the colour SRC_ALPHA_SATURATE into ZERO, in the colour and alpha
factors alike.
d3d12_draw_test blends a full-screen pass into B8G8R8X8 and B8G8R8A8
targets cleared with alpha 0.25 through the five factors that read
destination alpha, and compares red, green and blue. The X byte is left
out: WARP writes 0 there after a draw and AMD the blended alpha, and no
view reads it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions