Trivial simple OpenGl working example

Danny Arends Danny.Arends at gmail.com
Sat Jul 10 19:43:07 UTC 2021


On Saturday, 10 July 2021 at 12:41:19 UTC, Виталий Фадеев wrote:
> On Saturday, 10 July 2021 at 08:36:07 UTC, Danny Arends wrote:
>> On Thursday, 8 July 2021 at 13:51:51 UTC, Виталий Фадеев wrote:
>>> [...]
>>
>> OpenGL is being replaced by vulcan, just to plug my little 
>> project:
>>
>> http://github.com/DannyArends/CalderaD
>>
>> Pretty beafy, but well vulkan is a lot more verbose compared 
>> to OpenGL
>
> Thank, Danny Arends! I see you.
>
> I got error:
>
> # glslc app/src/main/assets/data/shaders/wavefront.vert -o 
> app/src/main/assets/data/shaders/vert.spv
>
> # glslc app/src/main/assets/data/shaders/wavefront.frag -o 
> app/src/main/assets/data/shaders/frag.spv
>
> # dub
> Performing "debug" build using /usr/bin/dmd for x86_64.
> bindbc-loader 0.3.2: target for configuration "yesBC" is up to 
> date.
> bindbc-sdl 0.21.4: target for configuration "dynamicBC" is up 
> to date.
> calderad ~master: building configuration "default"...
> Running pre-build commands...
> /bin/sh: 1: glslc.exe: not found
> Command failed with exit code 127: glslc.exe 
> app/src/main/assets/data/shaders/wavefront.vert -o 
> app/src/main/assets/data/shaders/vert.spv

Just disable shader compilation using dub, the shader only needs 
to be compiled once. Since you're on linux it fails to execute 
glslc.exe (the windows executable). If you compiled them yourself 
you can remove it from dub prebuild commands


More information about the Digitalmars-d-learn mailing list