|
40 | 40 | # include "../examples/triangle/triangle.cpp"
|
41 | 41 | #endif
|
42 | 42 |
|
| 43 | +// Does not run. MoltenVK does not yet support Vulkan 1.3 |
| 44 | +#ifdef MVK_trianglevulkan13 |
| 45 | +# include "../examples/trianglevulkan13/trianglevulkan13.cpp" |
| 46 | +#endif |
| 47 | + |
43 | 48 | #ifdef MVK_pipelines
|
44 | 49 | # include "../examples/pipelines/pipelines.cpp"
|
45 | 50 | #endif
|
|
72 | 77 | # include "../examples/texturecubemap/texturecubemap.cpp"
|
73 | 78 | #endif
|
74 | 79 |
|
| 80 | +// Not supported on iOS Simulator which does not support cube map arrays. |
75 | 81 | #ifdef MVK_texturecubemaparray
|
76 | 82 | # include "../examples/texturecubemaparray/texturecubemaparray.cpp"
|
77 | 83 | #endif
|
|
134 | 140 | # include "../examples/shadowmapping/shadowmapping.cpp"
|
135 | 141 | #endif
|
136 | 142 |
|
| 143 | +// Not supported on iOS Simulator which does not support rendering to array (layered) attachments. |
137 | 144 | #ifdef MVK_shadowmappingcascade
|
138 | 145 | # include "../examples/shadowmappingcascade/shadowmappingcascade.cpp"
|
139 | 146 | #endif
|
140 | 147 |
|
| 148 | +// Not supported on iOS Simulator which does not support rendering to array (layered) attachments. |
141 | 149 | #ifdef MVK_shadowmappingomni
|
142 | 150 | # include "../examples/shadowmappingomni/shadowmappingomni.cpp"
|
143 | 151 | #endif
|
144 | 152 |
|
| 153 | +// Not supported on iOS Simulator which does not support arrays of samplers. |
145 | 154 | #ifdef MVK_texturemipmapgen
|
146 | 155 | # include "../examples/texturemipmapgen/texturemipmapgen.cpp"
|
147 | 156 | #endif
|
148 | 157 |
|
| 158 | +// Not supported on iOS Simulator which does not support blitting to linear tiled images. |
149 | 159 | #ifdef MVK_screenshot
|
150 | 160 | # include "../examples/screenshot/screenshot.cpp"
|
151 | 161 | #endif
|
152 | 162 |
|
153 |
| -// Runs, but some Apple GPUs may not support stores and atomic operations in the fragment stage. |
| 163 | +// Not supported on iOS Simulator due to VkDeviceMemory resource limitations. |
154 | 164 | #ifdef MVK_oit
|
155 | 165 | # include "../examples/oit/oit.cpp"
|
156 | 166 | #endif
|
157 | 167 |
|
158 |
| -// Does not run. Sparse image binding and residency not supported by MoltenVK/Metal. |
159 |
| -#ifdef MVK_texturesparseresidency |
160 |
| -# include "../examples/texturesparseresidency/texturesparseresidency.cpp" |
161 |
| -#endif |
162 |
| - |
163 | 168 |
|
164 | 169 | // PERFORMANCE
|
165 | 170 |
|
|
171 | 176 | # include "../examples/instancing/instancing.cpp"
|
172 | 177 | #endif
|
173 | 178 |
|
| 179 | +// Not supported on iOS Simulator which does not support indirect drawing. |
174 | 180 | #ifdef MVK_indirectdraw
|
175 | 181 | # include "../examples/indirectdraw/indirectdraw.cpp"
|
176 | 182 | #endif
|
|
179 | 185 | # include "../examples/occlusionquery/occlusionquery.cpp"
|
180 | 186 | #endif
|
181 | 187 |
|
182 |
| -// Does not run. MoltenVK/Metal does not support pipeline statistics. |
| 188 | +// Does not run. MoltenVK/Metal does not support pipeline statistics. |
183 | 189 | #ifdef MVK_pipelinestatistics
|
184 | 190 | # include "../examples/pipelinestatistics/pipelinestatistics.cpp"
|
185 | 191 | #endif
|
186 | 192 |
|
| 193 | +// Does not run. Sparse image binding and residency not supported by MoltenVK/Metal. |
| 194 | +#ifdef MVK_texturesparseresidency |
| 195 | +# include "../examples/texturesparseresidency/texturesparseresidency.cpp" |
| 196 | +#endif |
| 197 | + |
187 | 198 |
|
188 | 199 | // PHYSICALLY BASED RENDERING
|
189 | 200 |
|
|
242 | 253 | # include "../examples/computecloth/computecloth.cpp"
|
243 | 254 | #endif
|
244 | 255 |
|
| 256 | +// Not supported on iOS Simulator which does not support indirect drawing. |
245 | 257 | #ifdef MVK_computecullandlod
|
246 | 258 | # include "../examples/computecullandlod/computecullandlod.cpp"
|
247 | 259 | #endif
|
|
262 | 274 |
|
263 | 275 | // TESSELLATION
|
264 | 276 |
|
| 277 | +// Not supported on iOS Simulator which does not support tessellation shaders. |
265 | 278 | #ifdef MVK_displacement
|
266 | 279 | # include "../examples/displacement/displacement.cpp"
|
267 | 280 | #endif
|
268 | 281 |
|
| 282 | +// Not supported on iOS Simulator which does not support tessellation shaders. |
269 | 283 | #ifdef MVK_terraintessellation
|
270 | 284 | # include "../examples/terraintessellation/terraintessellation.cpp"
|
271 | 285 | #endif
|
272 | 286 |
|
| 287 | +// Not supported on iOS Simulator which does not support tessellation shaders. |
273 | 288 | #ifdef MVK_tessellation
|
274 | 289 | # include "../examples/tessellation/tessellation.cpp"
|
275 | 290 | #endif
|
276 | 291 |
|
277 | 292 |
|
278 | 293 | // RAY TRACING - Currently unsupported by MoltenVK/Metal
|
279 | 294 |
|
280 |
| -// Does not run. Missing Vulkan extensions for ray tracing |
| 295 | +// Does not run. Missing Vulkan extensions for ray tracing. |
281 | 296 | #ifdef MVK_raytracingbasic
|
282 | 297 | # include "../examples/raytracingbasic/raytracingbasic.cpp"
|
283 | 298 | #endif
|
284 | 299 |
|
285 |
| -// Does not run. Missing Vulkan extensions for ray tracing |
| 300 | +// Does not run. Missing Vulkan extensions for ray tracing. |
286 | 301 | #ifdef MVK_raytracingshadows
|
287 | 302 | # include "../examples/raytracingshadows/raytracingshadows.cpp"
|
288 | 303 | #endif
|
289 | 304 |
|
290 |
| -// Does not run. Missing Vulkan extensions for ray tracing |
| 305 | +// Does not run. Missing Vulkan extensions for ray tracing. |
291 | 306 | #ifdef MVK_raytracingreflections
|
292 | 307 | # include "../examples/raytracingreflections/raytracingreflections.cpp"
|
293 | 308 | #endif
|
294 | 309 |
|
295 |
| -// Does not run. Missing Vulkan extensions for ray tracing |
| 310 | +// Does not run. Missing Vulkan extensions for ray tracing. |
296 | 311 | #ifdef MVK_raytracingtextures
|
297 | 312 | # include "../examples/raytracingtextures/raytracingtextures.cpp"
|
298 | 313 | #endif
|
299 | 314 |
|
300 |
| -// Does not run. Missing Vulkan extensions for ray tracing |
| 315 | +// Does not run. Missing Vulkan extensions for ray tracing. |
301 | 316 | #ifdef MVK_raytracingcallable
|
302 | 317 | # include "../examples/raytracingcallable/raytracingcallable.cpp"
|
303 | 318 | #endif
|
304 | 319 |
|
305 |
| -// Does not run. Missing Vulkan extensions for ray tracing |
| 320 | +// Does not run. Missing Vulkan extensions for ray tracing. |
306 | 321 | #ifdef MVK_raytracingintersection
|
307 | 322 | # include "../examples/raytracingintersection/raytracingintersection.cpp"
|
308 | 323 | #endif
|
309 | 324 |
|
310 |
| -// Does not run. Missing Vulkan extensions for ray tracing |
| 325 | +// Does not run. Missing Vulkan extensions for ray tracing. |
311 | 326 | #ifdef MVK_raytracinggltf
|
312 | 327 | # include "../examples/raytracinggltf/raytracinggltf.cpp"
|
313 | 328 | #endif
|
314 | 329 |
|
315 |
| -// Does not run. Missing Vulkan extensions for ray tracing |
| 330 | +// Does not run. Missing Vulkan extensions for ray tracing. |
316 | 331 | #ifdef MVK_rayquery
|
317 | 332 | # include "../examples/rayquery/rayquery.cpp"
|
318 | 333 | #endif
|
319 | 334 |
|
320 |
| -// Does not run. Missing Vulkan extensions for ray tracing |
| 335 | +// Does not run. Missing Vulkan extensions for ray tracing. |
321 | 336 | #ifdef MVK_raytracingpositionfetch
|
322 | 337 | # include "../examples/raytracingpositionfetch/raytracingpositionfetch.cpp"
|
323 | 338 | #endif
|
324 | 339 |
|
325 |
| -// Does not run. Missing Vulkan extensions for ray tracing |
| 340 | +// Does not run. Missing Vulkan extensions for ray tracing. |
326 | 341 | #ifdef MVK_raytracingsbtdata
|
327 | 342 | # include "../examples/raytracingsbtdata/raytracingsbtdata.cpp"
|
328 | 343 | #endif
|
|
356 | 371 | #endif
|
357 | 372 |
|
358 | 373 |
|
359 |
| -// EFFECTS |
360 |
| - |
361 |
| -#ifdef MVK_radialblur |
362 |
| -# include "../examples/radialblur/radialblur.cpp" |
363 |
| -#endif |
364 |
| - |
365 |
| -#ifdef MVK_bloom |
366 |
| -# include "../examples/bloom/bloom.cpp" |
367 |
| -#endif |
368 |
| - |
369 |
| -#ifdef MVK_parallaxmapping |
370 |
| -# include "../examples/parallaxmapping/parallaxmapping.cpp" |
371 |
| -#endif |
372 |
| - |
373 |
| -#ifdef MVK_sphericalenvmapping |
374 |
| -# include "../examples/sphericalenvmapping/sphericalenvmapping.cpp" |
375 |
| -#endif |
376 |
| - |
377 |
| - |
378 | 374 | // EXTENSIONS
|
379 | 375 |
|
380 | 376 | // Does not run. Requires VK_EXT_conservative_rasterization.
|
|
390 | 386 | # include "../examples/inlineuniformblocks/inlineuniformblocks.cpp"
|
391 | 387 | #endif
|
392 | 388 |
|
| 389 | +// Not supported on iOS Simulator which does not support rendering to array (layered) attachments. |
393 | 390 | #ifdef MVK_multiview
|
394 | 391 | # include "../examples/multiview/multiview.cpp"
|
395 | 392 | #endif
|
|
401 | 398 |
|
402 | 399 | // Runs on MoltenVK 1.2.5 or later with VK_KHR_shader_non_semantic_info extension and VK_LAYER_KHRONOS_validation enabled.
|
403 | 400 | // No VK_LAYER_KHRONOS_validation layer when using MoltenVK examples project, builds/runs fine using vulkanExamples project.
|
404 |
| -// Enable VK_LAYER_KHRONOS_validation layer with khronos_validation.enables = VK_VALIDATION_FEATURE_ENABLE_DEBUG_PRINTF_EXT |
405 | 401 | //#ifdef MVK_debugprintf
|
406 | 402 | //# include "../examples/debugprintf/debugprintf.cpp"
|
407 | 403 | //#endif
|
|
419 | 415 | # include "../examples/variablerateshading/variablerateshading.cpp"
|
420 | 416 | #endif
|
421 | 417 |
|
422 |
| -// Runs on macOS 11.0 or later with Metal argument buffers enabled. Not yet supported on iOS. |
| 418 | +// Runs on macOS 11.0 or later with Metal argument buffers enabled. |
| 419 | +// Supported on iOS (not Simulator) as of MoltenVK version 1.2.10 / Vulkan SDK 1.3.290 |
423 | 420 | #ifdef MVK_descriptorindexing
|
424 | 421 | # include "../examples/descriptorindexing/descriptorindexing.cpp"
|
425 | 422 | #endif
|
|
428 | 425 | # include "../examples/dynamicrendering/dynamicrendering.cpp"
|
429 | 426 | #endif
|
430 | 427 |
|
| 428 | +#ifdef MVK_dynamicrenderingmultisampling |
| 429 | +# include "../examples/dynamicrenderingmultisampling/dynamicrenderingmultisampling.cpp" |
| 430 | +#endif |
| 431 | + |
431 | 432 | // Does not run. Requires VK_KHR_pipeline_library and VK_EXT_graphics_pipeline_library.
|
432 | 433 | #ifdef MVK_graphicspipelinelibrary
|
433 | 434 | # include "../examples/graphicspipelinelibrary/graphicspipelinelibrary.cpp"
|
|
448 | 449 | # include "../examples/shaderobjects/shaderobjects.cpp"
|
449 | 450 | #endif
|
450 | 451 |
|
| 452 | +#ifdef MVK_hostimagecopy |
| 453 | +# include "../examples/hostimagecopy/hostimagecopy.cpp" |
| 454 | +#endif |
| 455 | + |
| 456 | +// Not supported on iOS Simulator. |
| 457 | +#ifdef MVK_bufferdeviceaddress |
| 458 | +# include "../examples/bufferdeviceaddress/bufferdeviceaddress.cpp" |
| 459 | +#endif |
| 460 | + |
| 461 | +#ifdef MVK_timelinesemaphore |
| 462 | +# include "../examples/timelinesemaphore/timelinesemaphore.cpp" |
| 463 | +#endif |
| 464 | + |
451 | 465 | // Runs, but most VK_EXT_extended_dynamic_state3 features not supported on MoltenVK.
|
452 | 466 | #ifdef MVK_dynamicstate
|
453 | 467 | # include "../examples/dynamicstate/dynamicstate.cpp"
|
454 | 468 | #endif
|
455 | 469 |
|
456 | 470 |
|
| 471 | +// EFFECTS |
| 472 | + |
| 473 | +#ifdef MVK_radialblur |
| 474 | +# include "../examples/radialblur/radialblur.cpp" |
| 475 | +#endif |
| 476 | + |
| 477 | +#ifdef MVK_bloom |
| 478 | +# include "../examples/bloom/bloom.cpp" |
| 479 | +#endif |
| 480 | + |
| 481 | +#ifdef MVK_parallaxmapping |
| 482 | +# include "../examples/parallaxmapping/parallaxmapping.cpp" |
| 483 | +#endif |
| 484 | + |
| 485 | +#ifdef MVK_sphericalenvmapping |
| 486 | +# include "../examples/sphericalenvmapping/sphericalenvmapping.cpp" |
| 487 | +#endif |
| 488 | + |
| 489 | + |
457 | 490 | // MISC
|
458 | 491 |
|
| 492 | +// Not supported on iOS Simulator which does not support indexed drawing with a non-zero base instance. |
459 | 493 | #ifdef MVK_gears
|
460 | 494 | # include "../examples/gears/gears.cpp"
|
461 |
| -# include "../examples/gears/vulkangear.cpp" |
462 | 495 | #endif
|
463 | 496 |
|
464 | 497 | #ifdef MVK_vulkanscene
|
|
0 commit comments