You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
552 B

  1. program triangle;
  2. {$mode objfpc}{$H+}
  3. {$APPTYPE CONSOLE}
  4. uses
  5. {$IFDEF UNIX}{$IFDEF UseCThreads}
  6. cthreads,
  7. {$ENDIF}{$ENDIF}
  8. Interfaces, Dialogs, Forms, uMainForm, Vulkan, uvkuDevice, uvkuDeviceFactory, uvkuPhysicalDeviceFactory,
  9. uvkuAllocationHandler;
  10. {$R *.res}
  11. begin
  12. if not InitializeVulkan then begin
  13. MessageDlg('Error', 'unable to initialize vulkan api', mtError, [mbOK], 0);
  14. halt;
  15. end;
  16. RequireDerivedFormResource := True;
  17. Application.Initialize;
  18. Application.CreateForm(TMainForm, MainForm);
  19. Application.Run;
  20. end.