I just implemented dcomp into my d3d11 application, and after attempting to compile I was met with 1.5k errors all related to d2d. I don't use d2d in my application at all and was confused, apon looking at dcomp.h its clear that dcomp includes d2d1_1.h as part of it. Anytime I include dcomp.h or d2d1_1.h I end up with these errors. Mostly undefined types related to dcommon.h (which I attempted including at no difference to the errors)
I've attempted to remedy this include issue by doing the following sofar: include dcommon.h, include d2d1.h, update windows sdk to latest version. None of these have fixed the issue, and I still can't include dcomp.h without including d2d1_1.h. Does anyone have any idea as to how to fix this issue? this issue is not code related as these errors happen regardless of my dcomp code, Purely including these files throws these errors.
example error:
Severity Code Description Project File Line Suppression State Error (active) E0020 identifier "D2D_RECT_L" is undefined ext C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\d2d1_1.h 57
#include <dcommon.h>
#include <d2d1.h>
#pragma comment( lib, "d2d1" )
#include <wrl.h>
#include <dxgi.h>
#include <dcomp.h>
#pragma comment( lib, "dxgi" )
#pragma comment( lib, "dcomp" )