Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
D3D: Move sharable D3D11/D3D12 code to common library #7869
Does what the title says. This branch puts code which can be shared between D3D11 and D3D12 in a common class, to reduce duplication and the size of the D3D12 backend.
At the same time, I've replaced raw pointer usage with smart pointers (ComPtr) throughout the D3D11 backend, and refactored the global variable mess for swap chains into a class.
It also adds a DynamicLibrary class, for loading/symbol lookup in shared libraries. I've already switched Vulkan out to use the interface, but we could also use it for other things in the future (e.g. loading ffmpeg dynamically).