bgfx/examples
Sandy 651432df1d
examples: Add imageformats example (#2872)
* examples: Add imageformats example

Example which renders RGBA color wheel, alpha gradient and full value channel textures to
catch conversion errors and bad internal type representations between different backend
renderers.

The example uses bimg to convert from a master texture to different textures.

Each texture is rendered in an ImGui list using `ImGui::Image`. A close-up is visible
when hovering over each image.

U and I textures are skipped because they don't work for sampling.
Compressed textures are skipped because they don't have conversion functions.
Depth textures are not rendered because they don't work with channels.

* pixelformats: Present texture format in table

* Update pixelformats.cpp

* Update pixelformats.cpp

* pixelformats: Update screenshot

* pixelformats: Add checkerboard background

Co-authored-by: Michał Cichoń <michcic@gmail.com>
Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
2022-08-22 12:16:58 -07:00
..
00-helloworld Happy New Year! 2022-01-15 11:59:06 -08:00
01-cubes Happy New Year! 2022-01-15 11:59:06 -08:00
02-metaballs Happy New Year! 2022-01-15 11:59:06 -08:00
03-raymarch Happy New Year! 2022-01-15 11:59:06 -08:00
04-mesh Happy New Year! 2022-01-15 11:59:06 -08:00
05-instancing Happy New Year! 2022-01-15 11:59:06 -08:00
06-bump Happy New Year! 2022-01-15 11:59:06 -08:00
07-callback Cleanup. 2022-06-20 21:16:17 -07:00
08-update Happy New Year! 2022-01-15 11:59:06 -08:00
09-hdr Fix typo in source (#2840) 2022-07-13 06:19:47 -07:00
10-font Happy New Year! 2022-01-15 11:59:06 -08:00
11-fontsdf Happy New Year! 2022-01-15 11:59:06 -08:00
12-lod Happy New Year! 2022-01-15 11:59:06 -08:00
13-stencil Fix #2824, gcc 12.1 build issues (#2825) 2022-06-20 08:10:10 -07:00
14-shadowvolumes Fix #2824, gcc 12.1 build issues (#2825) 2022-06-20 08:10:10 -07:00
15-shadowmaps-simple Happy New Year! 2022-01-15 11:59:06 -08:00
16-shadowmaps Happy New Year! 2022-01-15 11:59:06 -08:00
17-drawstress Happy New Year! 2022-01-15 11:59:06 -08:00
18-ibl Happy New Year! 2022-01-15 11:59:06 -08:00
19-oit Happy New Year! 2022-01-15 11:59:06 -08:00
20-nanovg Happy New Year! 2022-01-15 11:59:06 -08:00
21-deferred Happy New Year! 2022-01-15 11:59:06 -08:00
22-windows Happy New Year! 2022-01-15 11:59:06 -08:00
23-vectordisplay Fix various typos (#2719) 2022-02-05 11:34:15 -08:00
24-nbody Happy New Year! 2022-01-15 11:59:06 -08:00
25-c99 Fixing build. 2019-02-26 23:24:48 -08:00
26-occlusion Happy New Year! 2022-01-15 11:59:06 -08:00
27-terrain Happy New Year! 2022-01-15 11:59:06 -08:00
28-wireframe Happy New Year! 2022-01-15 11:59:06 -08:00
29-debugdraw Happy New Year! 2022-01-15 11:59:06 -08:00
30-picking Fix various typos (#2719) 2022-02-05 11:34:15 -08:00
31-rsm Fix various typos (#2719) 2022-02-05 11:34:15 -08:00
32-particles Happy New Year! 2022-01-15 11:59:06 -08:00
33-pom Happy New Year! 2022-01-15 11:59:06 -08:00
34-mvs Happy New Year! 2022-01-15 11:59:06 -08:00
35-dynamic Happy New Year! 2022-01-15 11:59:06 -08:00
36-sky Fix various typos (#2719) 2022-02-05 11:34:15 -08:00
37-gpudrivenrendering Happy New Year! 2022-01-15 11:59:06 -08:00
38-bloom Use shift directly instead of float casts (#2714) 2022-01-16 08:15:14 -08:00
39-assao Happy New Year! 2022-01-15 11:59:06 -08:00
40-svt Happy New Year! 2022-01-15 11:59:06 -08:00
41-tess Fix various typos (#2719) 2022-02-05 11:34:15 -08:00
42-bunnylod rename rearrangeIndices() to remapIndices() (#2773) 2022-04-18 17:37:29 -07:00
43-denoise Fix various typos (#2719) 2022-02-05 11:34:15 -08:00
44-sss Fix various typos (#2719) 2022-02-05 11:34:15 -08:00
45-bokeh Fix various typos (#2719) 2022-02-05 11:34:15 -08:00
46-fsr Fix various typos (#2719) 2022-02-05 11:34:15 -08:00
47-pixelformats examples: Add imageformats example (#2872) 2022-08-22 12:16:58 -07:00
assets Fixed cubemap test texture. 2020-12-17 19:47:44 -08:00
common Updated ImGui. 2022-08-06 22:28:07 -07:00
runtime 39-assao: Rebuilt spir-v shaders. 2022-05-25 09:24:31 -07:00
makefile examples: Add imageformats example (#2872) 2022-08-22 12:16:58 -07:00