Exercises the thin bgfx wrappers added in the "missing bgfx API" pass.
← All examples45_bgfx_wrappers
On screen: - a 3D color LUT (mk_texture_create_3d) sampled by a BUFFERLESS fullscreen triangle (mk_draw_desc.vertex_count = 3, no vertex buffer) -- the z-slice animates over time; - the present view is clipped by mk_view_set_scissor, leaving a clear-color border so the scissor is visible. At startup it also calls mk_get_supported_renderers, mk_texture_calc_info, mk_texture_is_creatable, mk_texture_get_depth and mk_uniform_info and prints the results, so every new query wrapper runs on a live backend.

Runs the WebAssembly build on this page. Click the canvas to give it keyboard focus.
- Number
- 45
- Tags
- Source
examples/45_bgfx_wrappers/main.c
Build and run
./scripts/build-linux.sh release --target=45_bgfx_wrappers --run