JoshuaBrookover / bigg

bgfx, imgui, glfw, glm
The Unlicense
224 stars 35 forks source link

add_shader not working #22

Closed gezilinll closed 4 years ago

gezilinll commented 5 years ago

Hello, examples/cubes will crash when it is running because shaders.bin not found, I run on osx

gezilinll commented 5 years ago

command: cmake -G Xcode ..

widberg commented 5 years ago

Are there any files in the build/examples/cubes/shaders/metal directory?

gezilinll commented 5 years ago

Are there any files in the build/examples/cubes/shaders/metal directory?

Yes, the cubes demo is running successfully after I set working directory in Xcode scheme, but it's still crash if i use "cmake .. & make". One more question, how can i generate all platform shaders, i didn't see essl result

widberg commented 5 years ago

add_shader is configured to build metal glsl essl asm.js spirv shaders on MacOS. Are any of those missing besides essl?

gezilinll commented 5 years ago

add_shader is configured to build metal glsl essl asm.js spirv shaders on MacOS. Are any of those missing besides essl?

essl not found😄

widberg commented 5 years ago

I was unable to reproduce this issue using Xcode 10.3 and CMake 3.15.3 with the latest commit 2709802dc25ec1350e74c442337f846923100325. Please clone the bigg repository in a new location and build it from scratch to confirm that you are still experiencing this problem on the latest version.