diff --git a/examples/computeraytracing/computeraytracing.cpp b/examples/computeraytracing/computeraytracing.cpp index 6cb83490..d2f0e973 100644 --- a/examples/computeraytracing/computeraytracing.cpp +++ b/examples/computeraytracing/computeraytracing.cpp @@ -90,6 +90,11 @@ public: camera.setTranslation(glm::vec3(0.0f, 0.0f, -4.0f)); camera.rotationSpeed = 0.0f; camera.movementSpeed = 2.5f; + +#if defined(VK_USE_PLATFORM_MACOS_MVK) + // SRS - on macOS set environment variable to ensure MoltenVK disables Metal argument buffers for this example + setenv("MVK_CONFIG_USE_METAL_ARGUMENT_BUFFERS", "0", 1); +#endif } ~VulkanExample() diff --git a/examples/specializationconstants/specializationconstants.cpp b/examples/specializationconstants/specializationconstants.cpp index d0692d03..c32aef09 100644 --- a/examples/specializationconstants/specializationconstants.cpp +++ b/examples/specializationconstants/specializationconstants.cpp @@ -44,6 +44,11 @@ public: camera.setPerspective(60.0f, ((float)width / 3.0f) / (float)height, 0.1f, 512.0f); camera.setRotation(glm::vec3(-40.0f, -90.0f, 0.0f)); camera.setTranslation(glm::vec3(0.0f, 0.0f, -2.0f)); + +#if defined(VK_USE_PLATFORM_MACOS_MVK) + // SRS - on macOS set environment variable to ensure MoltenVK disables Metal argument buffers for this example + setenv("MVK_CONFIG_USE_METAL_ARGUMENT_BUFFERS", "0", 1); +#endif } ~VulkanExample()