mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
[d3d12] Fix bug with committed resource allocation (#7519)
This commit is contained in:
parent
e45013645f
commit
f1c496523f
@ -369,7 +369,7 @@ impl<'a> DeviceAllocationContext<'a> {
|
|||||||
let heap_properties = Direct3D12::D3D12_HEAP_PROPERTIES {
|
let heap_properties = Direct3D12::D3D12_HEAP_PROPERTIES {
|
||||||
Type: Direct3D12::D3D12_HEAP_TYPE_CUSTOM,
|
Type: Direct3D12::D3D12_HEAP_TYPE_CUSTOM,
|
||||||
CPUPageProperty: match location {
|
CPUPageProperty: match location {
|
||||||
MemoryLocation::GpuOnly => Direct3D12::D3D12_CPU_PAGE_PROPERTY_UNKNOWN,
|
MemoryLocation::GpuOnly => Direct3D12::D3D12_CPU_PAGE_PROPERTY_NOT_AVAILABLE,
|
||||||
MemoryLocation::CpuToGpu => Direct3D12::D3D12_CPU_PAGE_PROPERTY_WRITE_COMBINE,
|
MemoryLocation::CpuToGpu => Direct3D12::D3D12_CPU_PAGE_PROPERTY_WRITE_COMBINE,
|
||||||
MemoryLocation::GpuToCpu => Direct3D12::D3D12_CPU_PAGE_PROPERTY_WRITE_BACK,
|
MemoryLocation::GpuToCpu => Direct3D12::D3D12_CPU_PAGE_PROPERTY_WRITE_BACK,
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user