|
|
@@ -1156,7 +1156,11 @@ fn describe(view: Option<&View>) -> String {
|
|
|
None => "no view".into(),
|
|
|
Some(v @ View::Shader(r, _)) => texture(*r as This)
|
|
|
.unwrap_or_else(|| format!("buffer {:?}", crate::descriptor::host::buffer_range(v))),
|
|
|
- Some(View::Unordered(r, ..)) => format!("uav {:?}", texture(*r as This)),
|
|
|
+ // A buffer has no host texture: its title range, as for a shader view.
|
|
|
+ Some(v @ View::Unordered(r, ..)) => texture(*r as This).map_or_else(
|
|
|
+ || format!("uav buffer {:?}", crate::descriptor::host::buffer_range(v)),
|
|
|
+ |t| format!("uav {t}"),
|
|
|
+ ),
|
|
|
Some(View::Placed(u, r, d)) => format!(
|
|
|
"placed uav={u} dim {} {}x{} f{} layout {:#x} at {:#x}",
|
|
|
r[0],
|