Can't build examples
Hi,
Firstly, thankyou for this pascal vulkan implementation, i have a small rotating cube written in openGL and Lazarus, but i wanted to migrate it to vulkan.
https://github.com/benjamimgois/pascube
i'm trying to compile pasvulkan on Arch Linux following your instructions.
Step 1 - It compiles the asset files - Works fine Step 2 - compiles the example code itself - Error
I got the following error:
https://pastebin.com/kAZec4Eu
What should i do ?
Hm, It seems that the stable FPC 3.2.2 version has a bug, which is fixed in the unstable dev FPC 3.3.1 trunk version.
FPC 3.2.2 do seem to dislike:
bc0:=TpvVector2.InlineableCreate(x,TpvFloat(aResolution)-y)*InverseResolution;
which I've changed it now to:
bc0:=TpvVector2.InlineableCreate(x,(aResolution+0.0)-y)*InverseResolution;
So please pull and then test it again with this.
I myself always use the unstable dev FPC 3.3.1 version and not the stable FPC 3.2.2 release, so it got unnoticed. Thanks for the report 🙂