potatoengine / potato

Hobby C++ game engine
MIT License
38 stars 2 forks source link

Import Marcin's D3D12 code #299

Closed seanmiddleditch closed 2 years ago

seanmiddleditch commented 2 years ago

This import's Marcin's D3D12 backend, but without the accompanying changes in the rest of Potato.

It adds it as a flag behind UP_BUILD_D3D12 (which can be set in CMakeUserPresets.json or by modifying the CMake cache directly, etc.)

It won't build as-is, as it will need to be updated for the many changes in main since the DX12 code was last fully merged.

The main purpose is to get the code in main so we can iterate on it together and not keep Marcin or DX12 banished to a separate branch that's nearly impossible to keep up-to-date.

My instinct is that we should continue refactoring the primary Potato rendering infrastructure until it's easier to fully finish/enable this backend without requiring extensive backend-specific changes or hacks throughout the rest of the codebase.