Hi Thyandyr,

I was confronting the same situation a while ago. I don' know if you are interested in D3D11 or D3D12.

For D3D11 you can check these few examples here - https://github.com/AntonAngeloff/DX11_Examples . I wrote them as part of a project for a basic tutorial on using Direct3D 11 with FPC/Delphi, which unfortunately I never finished. The examples are based on the CMCHTPC headers.