Buffer views that begin between elements read their own bytes

A view D3D12 cannot place (a raw view off 16 bytes, a structured one off
16 and off its stride, a typed one off its element) was null, and the
shader read zeros: the colour-table bakes' parameter blocks are raw views
at byte 8. Such a view now gets a copy of its own bytes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit b2a3ce9ced69e669d2d56e20c2dca7011b7e405a)
This commit is contained in:
local committed 2026-11-25 00:17:46 -06:00
1 parent c6604f99cf
commit e888289c6f
3 files changed
+225 -16

No files matched your search

+2 -1
View File
@@ -7176,8 +7176,9 @@ impl Meter {
du2 = crate::resource::DEPTH_UNORDERED[2].load(Ordering::Relaxed),
du3 = crate::resource::DEPTH_UNORDERED[3].load(Ordering::Relaxed),
refused = format!(
"{}; depth twins: {} alive, {} depth textures left without one; twin copies per frame: {twin_to_depth:.1} into depth textures, {twin_to_colour:.1} into twins; depth planes: {planes:.1} drawn from their twins per frame, {} times not given back to a twin, {} times used before the pass",
"{} ({} copies made of views off their buffer's elements); depth twins: {} alive, {} depth textures left without one; twin copies per frame: {twin_to_depth:.1} into depth textures, {twin_to_colour:.1} into twins; depth planes: {planes:.1} drawn from their twins per frame, {} times not given back to a twin, {} times used before the pass",
crate::descriptor::host::REFUSED_VIEWS.load(Ordering::Relaxed),
crate::shadow::OWN_MADE.load(Ordering::Relaxed),
crate::resource::TWINS[0].load(Ordering::Relaxed),
crate::resource::TWINS[1].load(Ordering::Relaxed),
crate::resource::PLANES[1].load(Ordering::Relaxed),