microsoft / DirectX-Headers

Official DirectX headers available under an open source license
https://devblogs.microsoft.com/directx/
MIT License
570 stars 153 forks source link

Trying to use d3dx12_property_format_table.cpp from Agility SDK not easy #88

Open sausag3 opened 1 year ago

sausag3 commented 1 year ago

So I just spotted this project and it made me go look at what it had, spotting firstly the DXGI formats to names mapping that I'd part implemented myself, so thought I'd switch.

With the Agility SDK already in use the easiest way to use 'd3dx12_property_format_table.cpp' seems to be to #include it into another CPP file, but then it tries to bring in the .h file without specifying the d3dx12 folder it's located in, the Agility SDK doesn't add that subfolder to the include paths directly so we get a missing header.

So can the CPP include the file with <d3dx12\d3dx12_property_format_table.h> or is there a better way to use this that won't require manual editing of project files when we come to move to a newer Agility SDK?

Thanks

jenatali commented 1 year ago

Thanks for letting us know, we'll take a look and get back to you with a suggestion.