Skip to content

Commit f1c4965

Browse files
authored
[d3d12] Fix bug with committed resource allocation (#7519)
1 parent e450136 commit f1c4965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wgpu-hal/src/dx12/suballocation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ impl<'a> DeviceAllocationContext<'a> {
369369
let heap_properties = Direct3D12::D3D12_HEAP_PROPERTIES {
370370
Type: Direct3D12::D3D12_HEAP_TYPE_CUSTOM,
371371
CPUPageProperty: match location {
372-
MemoryLocation::GpuOnly => Direct3D12::D3D12_CPU_PAGE_PROPERTY_UNKNOWN,
372+
MemoryLocation::GpuOnly => Direct3D12::D3D12_CPU_PAGE_PROPERTY_NOT_AVAILABLE,
373373
MemoryLocation::CpuToGpu => Direct3D12::D3D12_CPU_PAGE_PROPERTY_WRITE_COMBINE,
374374
MemoryLocation::GpuToCpu => Direct3D12::D3D12_CPU_PAGE_PROPERTY_WRITE_BACK,
375375
_ => unreachable!(),

0 commit comments

Comments
 (0)