From 3d17bd3a84e9264df1b555523722e89d0a2ac23b Mon Sep 17 00:00:00 2001 From: lukaslw-lab <291379150+lukaslw-lab@users.noreply.github.com> Date: Mon, 30 Nov 2026 17:04:52 +0100 Subject: [PATCH] runtime: keep the sampler heap span when installing a compute translation install_compute_translation copied every field of a loaded candidate except sampler_heap_bytes (#3540's `smpidx`). The root keeps its SAMPLER_HEAP_DIRECTLY_INDEXED flag, but the dispatch then sees a zero span, binds only the view heap and sets that root without a sampler heap: a debug-layer error, and the program reads no samplers. Co-Authored-By: Claude Opus 5.5 --- src/startup_stubs/d3d12_compute_dispatch.inl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/startup_stubs/d3d12_compute_dispatch.inl b/src/startup_stubs/d3d12_compute_dispatch.inl index ae6988187f..a4f0811469 100644 --- a/src/startup_stubs/d3d12_compute_dispatch.inl +++ b/src/startup_stubs/d3d12_compute_dispatch.inl @@ -533,6 +533,7 @@ void install_compute_translation(ComputeTranslation& tr, ComputeTranslation& can tr.srvs = std::move(candidate.srvs); tr.uavs = std::move(candidate.uavs); tr.heap_srvs = candidate.heap_srvs; + tr.sampler_heap_bytes = candidate.sampler_heap_bytes; tr.samplers = std::move(candidate.samplers); tr.root = std::move(candidate.root); tr.pipeline = std::move(candidate.pipeline);