diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-25 23:38:55 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-25 23:38:55 -0500 |
| commit | 07bb65111b5067063f1d7a0375822ccbbb1dfd77 (patch) | |
| tree | 51fcb2b1e794b2191c8ff9709b2af58c8d39cd70 /runtime/test/loader_test.cpp | |
| parent | 568ff3a8519b5966c2632ea296323434a156bc51 (diff) | |
d3d12: A8_UNORM render targets through their R8 image, the alpha splatted
An A8 texture is an R8 image, and its RTVs were left null, so whatever the
title drew into one was lost. Now a pipeline with an A8 target uses an R8
attachment.
- At build, the pixel shader's output at that Location is stored as .wwww
(src/spirv_output_splat.h, on the translator's whole-vector OpStore), so the
one channel holds SV_Target.a.
- The channel blends with the alpha factors and op, the destination alpha
read as the stored red.
- The alpha write bit writes it.
- RTVs of an A8 texture in A8 or UNKNOWN are made in the image's own format.
spirv_output_splat_test covers it on hand-built SPIR-V. It passes, as do
d3d12_draw, d3d12_rect_list and spirv_stores (RTX 4060 Ti, 616.64).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/loader_test.cpp')
0 files changed, 0 insertions, 0 deletions