diff options
| author | aznohonza <honnzaaio@gmail.com> | 2026-12-01 12:19:11 +0100 |
|---|---|---|
| committer | aznohonza <honnzaaio@gmail.com> | 2026-12-02 00:15:23 +0100 |
| commit | 957e758da04113f542c95476d963fffd23a22808 (patch) | |
| tree | 1235e8128205eb6411714987a36190d4de9856a8 /runtime/test/queue_proxy_test.cpp | |
| parent | 913b88b9054de123a78fae0aea5ee24e10b7cb1d (diff) | |
d3d12-gpu: prime a draw's tested depth before its picked textures are read
A read-only depth target that a draw's shaders read through a heap-indexed
view could be left in DEPTH_READ without SHADER_RESOURCE. The textures
picked by index are brought up to date at the start of `State::bind`,
before `TESTED_DEPTH` was set for the draw; their views go through
`readable`, which marks the depth read (and keeps SHADER_RESOURCE in the
state) only when the target it holds is this draw's. It held the previous
draw's, so the read was not marked, and `State::prepare_for` then moved the
target to DEPTH_READ alone.
Set the draw's tested depth before `early_textures`, so the pass reads it
with the draw it belongs to. The state decision in `prepare_for` and the
states `readable` picks are unchanged.
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
0 files changed, 0 insertions, 0 deletions