2017-04-14 12:00:05 -04:00
|
|
|
/*
|
2017-06-22 14:53:49 -04:00
|
|
|
* examples.h
|
|
|
|
|
*
|
|
|
|
|
* Copyright (c) 2016-2017 The Brenwill Workshop Ltd.
|
|
|
|
|
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
|
|
|
|
|
*
|
2017-04-14 12:00:05 -04:00
|
|
|
*
|
|
|
|
|
* Loads the appropriate example code, as indicated by the appropriate compiler build setting below.
|
|
|
|
|
*
|
2018-02-27 13:43:02 +10:00
|
|
|
* To select an example to run, define one (and only one) of the macros below, either by
|
|
|
|
|
* adding a #define XXX statement at the top of this file, or more flexibily, by adding the
|
2017-04-14 12:00:05 -04:00
|
|
|
* macro value to the Preprocessor Macros (aka GCC_PREPROCESSOR_DEFINITIONS) compiler setting.
|
|
|
|
|
*
|
2018-02-27 13:43:02 +10:00
|
|
|
* To add a compiler setting, select the project in the Xcode Project Navigator panel,
|
|
|
|
|
* select the Build Settings panel, and add the value to the Preprocessor Macros
|
2017-04-14 12:00:05 -04:00
|
|
|
* (aka GCC_PREPROCESSOR_DEFINITIONS) entry.
|
|
|
|
|
*
|
2018-02-27 13:43:02 +10:00
|
|
|
* For example, to run the pipelines example, you would add the MVK_pipelines define macro
|
2017-04-14 12:00:05 -04:00
|
|
|
* to the Preprocessor Macros (aka GCC_PREPROCESSOR_DEFINITIONS) entry of the Xcode project,
|
2022-05-13 11:58:46 -04:00
|
|
|
* overwriting any other value there.
|
2017-04-14 12:00:05 -04:00
|
|
|
*
|
|
|
|
|
* If you choose to add a #define statement to this file, be sure to clear the existing macro
|
|
|
|
|
* from the Preprocessor Macros (aka GCC_PREPROCESSOR_DEFINITIONS) compiler setting in Xcode.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2017-06-22 14:53:49 -04:00
|
|
|
// In the list below, the comments indicate entries that,
|
|
|
|
|
// under certain conditions, that may not run as expected.
|
2017-04-14 12:00:05 -04:00
|
|
|
|
2022-05-13 11:58:46 -04:00
|
|
|
// Uncomment the next line and select example here if not using a Preprocessor Macro to define example
|
|
|
|
|
//#define MVK_vulkanscene
|
2022-05-09 14:09:47 -04:00
|
|
|
|
|
|
|
|
// COMMON - Include VulkanglTFModel.cpp in all examples other than ones that already include/customize tiny_gltf.h directly
|
|
|
|
|
#if !defined(MVK_gltfloading) && !defined(MVK_gltfskinning) && !defined(MVK_gltfscenerendering) && !defined(MVK_vertexattributes)
|
2022-05-13 11:58:46 -04:00
|
|
|
# include "../base/VulkanglTFModel.cpp"
|
2022-05-09 14:09:47 -04:00
|
|
|
#endif
|
|
|
|
|
|
2017-04-14 12:00:05 -04:00
|
|
|
|
|
|
|
|
// BASICS
|
|
|
|
|
|
2021-09-15 16:21:43 -04:00
|
|
|
#ifdef MVK_triangle
|
|
|
|
|
# include "../examples/triangle/triangle.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-04-14 12:00:05 -04:00
|
|
|
#ifdef MVK_pipelines
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/pipelines/pipelines.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2017-06-22 14:53:49 -04:00
|
|
|
#ifdef MVK_texture
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/texture/texture.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2021-09-15 16:21:43 -04:00
|
|
|
#ifdef MVK_texture3d
|
|
|
|
|
# include "../examples/texture3d/texture3d.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-06-22 14:53:49 -04:00
|
|
|
#ifdef MVK_texturecubemap
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/texturecubemap/texturecubemap.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2021-09-15 16:21:43 -04:00
|
|
|
#ifdef MVK_texturecubemaparray
|
|
|
|
|
# include "../examples/texturecubemaparray/texturecubemaparray.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-06-22 14:53:49 -04:00
|
|
|
#ifdef MVK_texturearray
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/texturearray/texturearray.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2017-06-22 14:53:49 -04:00
|
|
|
#ifdef MVK_dynamicuniformbuffer
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/dynamicuniformbuffer/dynamicuniformbuffer.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2021-09-15 16:21:43 -04:00
|
|
|
#ifdef MVK_inlineuniformblocks
|
|
|
|
|
# include "../examples/inlineuniformblocks/inlineuniformblocks.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef MVK_inputattachments
|
|
|
|
|
# include "../examples/inputattachments/inputattachments.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef MVK_negativeviewportheight
|
|
|
|
|
# include "../examples/negativeviewportheight/negativeviewportheight.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-06-22 14:53:49 -04:00
|
|
|
#ifdef MVK_pushconstants
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/pushconstants/pushconstants.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2017-06-22 14:53:49 -04:00
|
|
|
#ifdef MVK_specializationconstants
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/specializationconstants/specializationconstants.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2017-06-22 14:53:49 -04:00
|
|
|
#ifdef MVK_offscreen
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/offscreen/offscreen.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2021-09-15 16:21:43 -04:00
|
|
|
#ifdef MVK_stencilbuffer
|
|
|
|
|
# include "../examples/stencilbuffer/stencilbuffer.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef MVK_subpasses
|
|
|
|
|
# include "../examples/subpasses/subpasses.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-06-05 16:26:29 -04:00
|
|
|
#ifdef MVK_radialblur
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/radialblur/radialblur.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2017-06-05 16:26:29 -04:00
|
|
|
#ifdef MVK_textoverlay
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/textoverlay/textoverlay.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2017-06-05 16:26:29 -04:00
|
|
|
#ifdef MVK_particlefire
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/particlefire/particlefire.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2022-06-01 12:46:41 -04:00
|
|
|
// No headless target when using xcode examples project, builds/runs fine using vulkanExamples project.
|
2021-09-16 01:44:45 -04:00
|
|
|
#ifdef MVK_renderheadless
|
|
|
|
|
# include "../examples/renderheadless/renderheadless.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-04-14 12:00:05 -04:00
|
|
|
|
|
|
|
|
// ADVANCED
|
|
|
|
|
|
|
|
|
|
#ifdef MVK_multithreading
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/multithreading/multithreading.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2021-09-16 01:44:45 -04:00
|
|
|
#ifdef MVK_gltfscenerendering
|
|
|
|
|
# include "../examples/gltfscenerendering/gltfscenerendering.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2021-09-15 16:21:43 -04:00
|
|
|
#ifdef MVK_multiview
|
|
|
|
|
# include "../examples/multiview/multiview.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2017-06-05 16:26:29 -04:00
|
|
|
#ifdef MVK_instancing
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/instancing/instancing.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef MVK_indirectdraw
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/indirectdraw/indirectdraw.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2017-06-22 14:53:49 -04:00
|
|
|
#ifdef MVK_hdr
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/hdr/hdr.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2017-06-22 14:53:49 -04:00
|
|
|
#ifdef MVK_occlusionquery
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/occlusionquery/occlusionquery.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2017-06-22 14:53:49 -04:00
|
|
|
#ifdef MVK_texturemipmapgen
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/texturemipmapgen/texturemipmapgen.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2021-09-16 01:44:45 -04:00
|
|
|
// Does not run. Sparse binding not supported by MoltenVK/Metal.
|
2021-09-15 16:21:43 -04:00
|
|
|
#ifdef MVK_texturesparseresidency
|
|
|
|
|
# include "../examples/texturesparseresidency/texturesparseresidency.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-06-22 14:53:49 -04:00
|
|
|
#ifdef MVK_multisampling
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/multisampling/multisampling.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2017-06-22 14:53:49 -04:00
|
|
|
#ifdef MVK_shadowmapping
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/shadowmapping/shadowmapping.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2021-09-15 16:21:43 -04:00
|
|
|
#ifdef MVK_shadowmappingcascade
|
|
|
|
|
# include "../examples/shadowmappingcascade/shadowmappingcascade.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-06-22 14:53:49 -04:00
|
|
|
#ifdef MVK_shadowmappingomni
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/shadowmappingomni/shadowmappingomni.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2021-09-15 16:21:43 -04:00
|
|
|
#ifdef MVK_gltfloading
|
|
|
|
|
# include "../examples/gltfloading/gltfloading.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef MVK_gltfskinning
|
|
|
|
|
# include "../examples/gltfskinning/gltfskinning.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-06-22 14:53:49 -04:00
|
|
|
#ifdef MVK_bloom
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/bloom/bloom.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2022-05-09 14:09:47 -04:00
|
|
|
#ifdef MVK_vertexattributes
|
|
|
|
|
# include "../examples/vertexattributes/vertexattributes.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2022-06-01 12:46:41 -04:00
|
|
|
// Does not run. MoltenVK/Metal does not support stores and atomic operations in the fragment stage.
|
2021-09-16 01:44:45 -04:00
|
|
|
#ifdef MVK_oit
|
|
|
|
|
# include "../examples/oit/oit.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DEFERRED
|
|
|
|
|
|
2017-06-22 14:53:49 -04:00
|
|
|
#ifdef MVK_deferred
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/deferred/deferred.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2021-09-16 01:44:45 -04:00
|
|
|
#ifdef MVK_deferredmultisampling
|
|
|
|
|
# include "../examples/deferredmultisampling/deferredmultisampling.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-06-22 14:53:49 -04:00
|
|
|
#ifdef MVK_ssao
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/ssao/ssao.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2021-09-16 01:44:45 -04:00
|
|
|
|
|
|
|
|
// DESCRIPTORS
|
|
|
|
|
|
|
|
|
|
#ifdef MVK_descriptorsets
|
|
|
|
|
# include "../examples/descriptorsets/descriptorsets.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef MVK_pushdescriptors
|
|
|
|
|
# include "../examples/pushdescriptors/pushdescriptors.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// Does not run. Shader compilation fails with MoltenVK.
|
|
|
|
|
#ifdef MVK_descriptorindexing
|
|
|
|
|
# include "../examples/descriptorindexing/descriptorindexing.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// PHYSICALLY BASED RENDERING
|
|
|
|
|
|
2021-09-15 16:21:43 -04:00
|
|
|
#ifdef MVK_pbrbasic
|
|
|
|
|
# include "../examples/pbrbasic/pbrbasic.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef MVK_pbribl
|
|
|
|
|
# include "../examples/pbribl/pbribl.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef MVK_pbrtexture
|
|
|
|
|
# include "../examples/pbrtexture/pbrtexture.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// RAY TRACING - Currently unsupported by MoltenVK/Metal
|
|
|
|
|
|
|
|
|
|
// Does not run. Missing Vulkan extensions for ray tracing
|
|
|
|
|
#ifdef MVK_rayquery
|
|
|
|
|
# include "../examples/rayquery/rayquery.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// Does not run. Missing Vulkan extensions for ray tracing
|
|
|
|
|
#ifdef MVK_raytracingbasic
|
|
|
|
|
# include "../examples/raytracingbasic/raytracingbasic.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// Does not run. Missing Vulkan extensions for ray tracing
|
|
|
|
|
#ifdef MVK_raytracingcallable
|
|
|
|
|
# include "../examples/raytracingcallable/raytracingcallable.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// Does not run. Missing Vulkan extensions for ray tracing
|
|
|
|
|
#ifdef MVK_raytracingreflections
|
|
|
|
|
# include "../examples/raytracingreflections/raytracingreflections.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// Does not run. Missing Vulkan extensions for ray tracing
|
|
|
|
|
#ifdef MVK_raytracingshadows
|
|
|
|
|
# include "../examples/raytracingshadows/raytracingshadows.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// COMPUTE
|
|
|
|
|
|
2021-09-16 01:44:45 -04:00
|
|
|
#ifdef MVK_computeparticles
|
|
|
|
|
# include "../examples/computeparticles/computeparticles.cpp"
|
2021-09-15 16:21:43 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef MVK_computenbody
|
|
|
|
|
# include "../examples/computenbody/computenbody.cpp"
|
|
|
|
|
#endif
|
2017-04-14 12:00:05 -04:00
|
|
|
|
2021-09-15 16:21:43 -04:00
|
|
|
#ifdef MVK_computeraytracing
|
|
|
|
|
# include "../examples/computeraytracing/computeraytracing.cpp"
|
|
|
|
|
#endif
|
2017-04-14 12:00:05 -04:00
|
|
|
|
2021-09-16 01:44:45 -04:00
|
|
|
#ifdef MVK_computecullandlod
|
|
|
|
|
# include "../examples/computecullandlod/computecullandlod.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2021-09-15 16:21:43 -04:00
|
|
|
#ifdef MVK_computeshader
|
|
|
|
|
# include "../examples/computeshader/computeshader.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2021-09-16 01:44:45 -04:00
|
|
|
#ifdef MVK_computecloth
|
|
|
|
|
# include "../examples/computecloth/computecloth.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2022-06-01 12:46:41 -04:00
|
|
|
// No headless target when using xcode examples project, builds/runs fine using vulkanExamples project.
|
2021-09-16 01:44:45 -04:00
|
|
|
#ifdef MVK_computeheadless
|
|
|
|
|
# include "../examples/computeheadless/computeheadless.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2021-09-15 16:21:43 -04:00
|
|
|
|
|
|
|
|
// TESSELLATION
|
|
|
|
|
|
2021-09-16 01:44:45 -04:00
|
|
|
#ifdef MVK_terraintessellation
|
|
|
|
|
# include "../examples/terraintessellation/terraintessellation.cpp"
|
2021-09-15 16:21:43 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef MVK_tessellation
|
|
|
|
|
# include "../examples/tessellation/tessellation.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2021-09-16 01:44:45 -04:00
|
|
|
#ifdef MVK_displacement
|
|
|
|
|
# include "../examples/displacement/displacement.cpp"
|
2021-09-15 16:21:43 -04:00
|
|
|
#endif
|
2017-04-14 12:00:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// GEOMETRY SHADER - Unsupported by Metal
|
|
|
|
|
|
2021-09-15 16:21:43 -04:00
|
|
|
// Does not run. Metal does not support geometry shaders.
|
|
|
|
|
#ifdef MVK_geometryshader
|
|
|
|
|
# include "../examples/geometryshader/geometryshader.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2022-05-09 14:09:47 -04:00
|
|
|
// Does not run. Metal does not support geometry shaders.
|
|
|
|
|
#ifdef MVK_deferredshadows
|
|
|
|
|
# include "../examples/deferredshadows/deferredshadows.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2021-09-15 16:21:43 -04:00
|
|
|
// Does not run. Metal does not support geometry shaders.
|
|
|
|
|
#ifdef MVK_viewportarray
|
|
|
|
|
# include "../examples/viewportarray/viewportarray.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// EXTENSIONS
|
|
|
|
|
|
2021-09-16 01:44:45 -04:00
|
|
|
// Does not run. Requires VK_EXT_conditional_rendering.
|
2021-09-15 16:21:43 -04:00
|
|
|
#ifdef MVK_conditionalrender
|
|
|
|
|
# include "../examples/conditionalrender/conditionalrender.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2021-09-16 01:44:45 -04:00
|
|
|
// Does not run. Requires VK_EXT_conservative_rasterization.
|
2021-09-15 16:21:43 -04:00
|
|
|
#ifdef MVK_conservativeraster
|
|
|
|
|
# include "../examples/conservativeraster/conservativeraster.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2021-09-16 01:44:45 -04:00
|
|
|
// Does not run. Requires VK_NV_shading_rate_image.
|
2021-09-15 16:21:43 -04:00
|
|
|
#ifdef MVK_variablerateshading
|
|
|
|
|
# include "../examples/variablerateshading/variablerateshading.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2022-05-09 14:09:47 -04:00
|
|
|
// Does not run. Requires VK_KHR_pipeline_library and VK_EXT_graphics_pipeline_library.
|
|
|
|
|
#ifdef MVK_graphicspipelinelibrary
|
|
|
|
|
# include "../examples/graphicspipelinelibrary/graphicspipelinelibrary.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// Does not run yet. Requires VK_KHR_dynamic_rendering (under development in MoltenVK)
|
|
|
|
|
#ifdef MVK_dynamicrendering
|
|
|
|
|
# include "../examples/dynamicrendering/dynamicrendering.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2021-09-16 01:44:45 -04:00
|
|
|
// Runs. Requires VK_EXT_debug_marker.
|
2021-09-15 16:21:43 -04:00
|
|
|
#ifdef MVK_debugmarker
|
|
|
|
|
# include "../examples/debugmarker/debugmarker.cpp"
|
|
|
|
|
#endif
|
2017-04-14 12:00:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// MISC
|
|
|
|
|
|
2021-09-16 01:44:45 -04:00
|
|
|
#ifdef MVK_screenshot
|
|
|
|
|
# include "../examples/screenshot/screenshot.cpp"
|
2021-09-15 16:21:43 -04:00
|
|
|
#endif
|
|
|
|
|
|
2017-04-14 12:00:05 -04:00
|
|
|
#ifdef MVK_parallaxmapping
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/parallaxmapping/parallaxmapping.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef MVK_sphericalenvmapping
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/sphericalenvmapping/sphericalenvmapping.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef MVK_gears
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/gears/gears.cpp"
|
2021-09-10 01:23:49 -04:00
|
|
|
# include "../examples/gears/vulkangear.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2017-06-22 14:53:49 -04:00
|
|
|
#ifdef MVK_distancefieldfonts
|
2018-02-27 13:43:02 +10:00
|
|
|
# include "../examples/distancefieldfonts/distancefieldfonts.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2021-09-16 01:44:45 -04:00
|
|
|
// Does not run. MoltenVK/Metal does not support pipeline statistics.
|
|
|
|
|
#ifdef MVK_pipelinestatistics
|
|
|
|
|
# include "../examples/pipelinestatistics/pipelinestatistics.cpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2021-09-15 16:21:43 -04:00
|
|
|
#ifdef MVK_imgui
|
|
|
|
|
# include "../examples/imgui/main.cpp"
|
2017-04-14 12:00:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
2021-09-15 16:21:43 -04:00
|
|
|
#ifdef MVK_vulkanscene
|
|
|
|
|
# include "../examples/vulkanscene/vulkanscene.cpp"
|
2021-09-10 01:23:49 -04:00
|
|
|
#endif
|