Commit 976ea19
committed
imiv: multi-backend CMake refactor
Refactor imiv CMake to support multiple renderer backends (Vulkan/Metal/OpenGL) enabled independently. Introduces OIIO_IMIV_DEFAULT_RENDERER (replacing deprecated OIIO_IMIV_RENDERER) and OIIO_IMIV_ENABLE_VULKAN/ENABLE_METAL/ENABLE_OPENGL (AUTO/ON/OFF) options, generates imiv_build_config.h, and sets IMIV_WITH_* compile defines. Improves Vulkan and glslang discovery (including explicit Vulkan SDK handling and MSVC CRT compatibility), conditionally enables backend-specific ImGui sources, and selects a sensible default backend when multiple backends are available. Adds imiv_backend.cpp/h and supporting docs/tools, a CTest option OIIO_IMIV_ADD_BACKEND_VERIFY_CTEST to run per-backend verification tests, and updates various regression test invocations to pass backend arguments and rename selection test to ux_actions_regression.1 parent 1f68951 commit 976ea19
52 files changed
Lines changed: 4468 additions & 1188 deletions
File tree
- src/imiv
- tools
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 171 | + | |
182 | 172 | | |
183 | 173 | | |
184 | 174 | | |
185 | 175 | | |
186 | 176 | | |
187 | 177 | | |
188 | | - | |
189 | | - | |
190 | | - | |
| 178 | + | |
191 | 179 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
| 180 | + | |
| 181 | + | |
199 | 182 | | |
200 | 183 | | |
201 | 184 | | |
| |||
677 | 660 | | |
678 | 661 | | |
679 | 662 | | |
680 | | - | |
681 | 663 | | |
682 | | - | |
683 | 664 | | |
684 | 665 | | |
685 | 666 | | |
| |||
847 | 828 | | |
848 | 829 | | |
849 | 830 | | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | | - | |
854 | 831 | | |
855 | 832 | | |
856 | 833 | | |
| |||
0 commit comments