Traverse-Research / gpu-allocator

🦀 GPU memory allocator for Vulkan, DirectX 12 and Metal. Written in pure Rust
https://traverse.nl/
Apache License 2.0
380 stars 50 forks source link

d3d12: Use `Device10` `Placed/CommittedResource` functions for Enhanced-Barriers initial Layout #168

Closed MarijnS95 closed 1 year ago

MarijnS95 commented 1 year ago

When using enhanced barriers new resource creation APIs need to be used to set its initial layout rather than setting an initial state, which is the legacy enumeration API.

In order to support this we need access to Device10 where the new methods reside, which we could query (.cast()) from ID3D12Device or request from the user directly as done here.