Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

some generated shaders need to be embedded using bin2c #37

Open
mean-ui-thread opened this issue Dec 27, 2018 · 3 comments
Open

some generated shaders need to be embedded using bin2c #37

mean-ui-thread opened this issue Dec 27, 2018 · 3 comments

Comments

@mean-ui-thread
Copy link
Contributor

./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
@pezcode
Copy link
Contributor

pezcode commented Sep 9, 2019

Is that even necessary? The bgfx repo comes with these pregenerated

@JoshuaBrookover
Copy link
Collaborator

It's a nice to have, but I doubt this affects many people.

@mean-ui-thread
Copy link
Contributor Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants