Replay: buffers in heaps opened from memory are made again (without the cross-adapter flag)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
30f46c92a9
commit
a50c7fdeb5
1 file changed
+5
-1
@@ -735,7 +735,11 @@ impl Player {
|
||||
let m = moves.entry(format!("{seen:?}")).or_insert((0u32, 0u64));
|
||||
*m = (m.0 + 1, m.1 + r.desc.width);
|
||||
}
|
||||
let desc = gpu::to_desc(&r.desc);
|
||||
let mut desc = gpu::to_desc(&r.desc);
|
||||
// (Heaps are made without what let others open them.)
|
||||
if matches!(r.place, Place::Placed { .. }) {
|
||||
desc.Flags &= !D3D12_RESOURCE_FLAG_ALLOW_CROSS_ADAPTER;
|
||||
}
|
||||
let mut made: Option<ID3D12Resource> = None;
|
||||
let clear: Option<D3D12_CLEAR_VALUE> = r.clear.map(|c| {
|
||||
// SAFETY: 20 bytes that were a clear value.
|
||||
|
||||
Reference in new issue
Block a user