On Sat Oct 29 07:33:03 2022 +0000, Nikolay Sivov wrote:
Let's not rearrange function order, I would add a new function d2d_device_create() that takes dxgi device and returns "struct d2d_device *", you can use that function in all CreateDevice methods, keeping their own trace messages without duplicating them in debug output.
Moved functions back, `d2d_device_init` in `device.c` is basically that, but without allocation part, moved the common device creation into it's own function.