Results 1 to 10 of 12

Thread: DirectX

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    If you have any question about LaggyLuk's voxel engine don't hesitate to ask in its thread. He is stil visiting PGD forums quite regularly and knowing him from the past I'm sure he will be prepared to help. Perhaps even help you to compile his engine with newest version of FPC/Lazarus (I don't think he is using Delphi).

  2. #2
    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.

  3. #3
    Quote Originally Posted by Anton View Post
    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.
    Thanks. I started with OpenGL but will definitely check these as well. I don't have any ideology, I just want something that is easy to set up.

    Had a look. Looks pretty much same as OpenGL code. Unfortunately I get [dcc32 Error] renderer.pas(17: E2010 Incompatible types: 'PDXGI_SWAP_CHAIN_DESC' and 'TDXGI_SWAP_CHAIN_DESC' and I don't know what to do. Maybe the header file superseded the project files.
    Last edited by Thyandyr; 31-10-2017 at 09:10 PM.

  4. #4
    Most likely the headers are updated and this causes the error. Could you tell me the Delphi version you are using and which particular example gives you that error? I can try to fix it.
    Anyway, if this is the only error you can try to change the variable to a pointer, i.e. add @ operator in front of swapchain_desc.

  5. #5
    Quote Originally Posted by Anton View Post
    Most likely the headers are updated and this causes the error. Could you tell me the Delphi version you are using and which particular example gives you that error? I can try to fix it.
    Anyway, if this is the only error you can try to change the variable to a pointer, i.e. add @ operator in front of swapchain_desc.
    Berlin 10.1

    I'll try that later in the evening

  6. #6
    The same error appears in Lazarus. I fixed that and added DelphiDX12 as a submodule in the repository, which will download the headers along with the examples on one hand. And on the other hand it will bind the examples to a particular DelphiDX12 version.

    It should compile successfully now, thanks for your feedback. On interest, I am able to add more examples.

  7. #7
    All examples compile but when running them they ask for d3dx10d_43.dll which is not on my computer (Windows 10 64-bit)

    Ok I changed target from debug to release. Now it says DX12.D3DX10 cannot be found... but it is in the headers folder. Oh had to set search path for Release. Now it is back to the exe asking for DX12.D3DX10
    Last edited by Thyandyr; 01-11-2017 at 10:58 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •