bgfx.cmake
bgfx.cmake copied to clipboard
some generated shaders need to be embedded using bin2c
./examples/02-metaballs/fs_metaballs.bin.h
./examples/02-metaballs/vs_metaballs.bin.h
./examples/17-drawstress/fs_drawstress.bin.h
./examples/17-drawstress/vs_drawstress.bin.h
./examples/common/debugdraw/fs_debugdraw_fill.bin.h
./examples/common/debugdraw/fs_debugdraw_fill_lit.bin.h
./examples/common/debugdraw/fs_debugdraw_fill_texture.bin.h
./examples/common/debugdraw/fs_debugdraw_lines.bin.h
./examples/common/debugdraw/fs_debugdraw_lines_stipple.bin.h
./examples/common/debugdraw/vs_debugdraw_fill.bin.h
./examples/common/debugdraw/vs_debugdraw_fill_lit.bin.h
./examples/common/debugdraw/vs_debugdraw_fill_lit_mesh.bin.h
./examples/common/debugdraw/vs_debugdraw_fill_mesh.bin.h
./examples/common/debugdraw/vs_debugdraw_fill_texture.bin.h
./examples/common/debugdraw/vs_debugdraw_lines.bin.h
./examples/common/debugdraw/vs_debugdraw_lines_stipple.bin.h
./examples/common/font/fs_font_basic.bin.h
./examples/common/font/fs_font_distance_field.bin.h
./examples/common/font/fs_font_distance_field_subpixel.bin.h
./examples/common/font/vs_font_basic.bin.h
./examples/common/font/vs_font_distance_field.bin.h
./examples/common/font/vs_font_distance_field_subpixel.bin.h
./examples/common/imgui/fs_imgui_color.bin.h
./examples/common/imgui/fs_imgui_cubemap.bin.h
./examples/common/imgui/fs_imgui_image.bin.h
./examples/common/imgui/fs_imgui_image_swizz.bin.h
./examples/common/imgui/fs_imgui_latlong.bin.h
./examples/common/imgui/fs_imgui_texture.bin.h
./examples/common/imgui/fs_ocornut_imgui.bin.h
./examples/common/imgui/vs_imgui_color.bin.h
./examples/common/imgui/vs_imgui_cubemap.bin.h
./examples/common/imgui/vs_imgui_image.bin.h
./examples/common/imgui/vs_imgui_latlong.bin.h
./examples/common/imgui/vs_imgui_texture.bin.h
./examples/common/imgui/vs_ocornut_imgui.bin.h
./examples/common/nanovg/fs_nanovg_fill.bin.h
./examples/common/nanovg/vs_nanovg_fill.bin.h
./examples/common/ps/fs_particle.bin.h
./examples/common/ps/vs_particle.bin.h
./src/fs_clear0.bin.h
./src/fs_clear1.bin.h
./src/fs_clear2.bin.h
./src/fs_clear3.bin.h
./src/fs_clear4.bin.h
./src/fs_clear5.bin.h
./src/fs_clear6.bin.h
./src/fs_clear7.bin.h
./src/fs_debugfont.bin.h
./src/vs_clear.bin.h
./src/vs_debugfont.bin.h
./tools/texturev/fs_texture_3d.bin.h
./tools/texturev/fs_texture_array.bin.h
./tools/texturev/fs_texture.bin.h
./tools/texturev/fs_texture_cube2.bin.h
./tools/texturev/fs_texture_cube.bin.h
./tools/texturev/fs_texture_msdf.bin.h
./tools/texturev/fs_texture_sdf.bin.h
./tools/texturev/vs_texture.bin.h
./tools/texturev/vs_texture_cube.bin.h
currently done using this makefile
examples/02-metaballs/makefile:include ../../scripts/shader-embeded.mk
examples/17-drawstress/makefile:include ../../scripts/shader-embeded.mk
examples/common/debugdraw/makefile:include ../../../../bgfx/scripts/shader-embeded.mk
examples/common/font/makefile:include ../../../scripts/shader-embeded.mk
examples/common/imgui/makefile:include ../../../scripts/shader-embeded.mk
examples/common/nanovg/makefile:include ../../../scripts/shader-embeded.mk
examples/common/ps/makefile:include ../../../../bgfx/scripts/shader-embeded.mk
tools/texturev/makefile:include ../../../bgfx/scripts/shader-embeded.mk
Is that even necessary? The bgfx repo comes with these pregenerated
It's a nice to have, but I doubt this affects many people.
It's only necessary for running bgfx's examples. Last time I tried, some (if not all) examples that uses their own pre-compiled shaders were crashing at runtime.