MoltenVK is an implementation of the high-performance, industry-standard Vulkan graphics and compute API, that runs on Apple's Metal graphics framework, bringing Vulkan to iOS and macOS.
Questions tagged [moltenvk]
20 questions
8
votes
2 answers
Vulkan validation warning catch-22 about VK_KHR_portability_subset on MoltenVK
I'm using Vulkan 1.2.170 with MoltenVK (and GLFW) on Big Sur (mid 2014 15" Retina). I created the instance with VK_LAYER_KHRONOS_validation and when I call vkCreateDevice I get the warning
VUID-VkDeviceCreateInfo-pProperties-04451(ERROR / SPEC):…

Dan
- 12,409
- 3
- 50
- 87
5
votes
2 answers
Validation error on device extension on M1 mac
So I am attempting to follow the Vulkan tutorial on a mac with an M1 processor, and I am running into an issue with device creation.
So as per the tutorial I am setting the device enabled extensions like so:
const std::vector…

sak
- 2,612
- 24
- 55
4
votes
4 answers
VK_ERROR_INCOMPATIBLE_DRIVER with Mac OS and Vulkan MoltenVK
I am trying to use Vulkan API on my mac OS (with my Intel HD Graphics 5000 1536 Mo).
But when I create an Instance With a VkCreateInstance(...)
the result of VkCreateInstance(...) is VK_ERROR_INCOMPATIBLE_DRIVER.
Here my code for initialize my…

Benzait Sofiane
- 107
- 1
- 12
3
votes
0 answers
Vulkan VMA buffer is empty
I have been trying to implement Vulkan Memory Allocator in my application, but all I get is a blank screen. I use deferred and HDR pipeline and I allocate all my attachments using VMA. I tried outputting solid color in the fragment shader and it…

Samo77
- 54
- 5
3
votes
1 answer
Xcode failed to load libvulkan.1.dylib
I am setting up dev env for Vulkan on OS X,via MoltenVK wrapper. I use Xcode IDE.
I downloaded VulkanSDK from lunarG website.
Configured the includes.
Added (copied) libvulkan.1.1.121.dylib ,libvulkan.1.dylib into the project
,then added those into…

Michael IV
- 11,016
- 12
- 92
- 223
2
votes
1 answer
Swapchain images being rescaled rather than clipped with MoltenVK
I'm trying to implement window scaling with a dynamic viewport in MoltenVK, by creating oversized swapchain images and calling vkCmdSetViewport. But the entire swapchain image is being scaled down to fit the window, rather than kept at 100% scale…

Dan
- 12,409
- 3
- 50
- 87
1
vote
1 answer
How to ensure MoltenVK compatibility of applications using Vulkan?
Is there any validation layer that validates Vulkan 1.1 compliance? Is there any convenient way to ensure that I'm not using Vulkan 1.2+ features?
Update
Here is a related github thread: https://github.com/KhronosGroup/MoltenVK/issues/1533
It seems…

user1050755
- 11,218
- 4
- 45
- 56
1
vote
0 answers
Compiler encountered an internal error (Error code 2) Vulkan/MacOS/MoltenVK?
On a call to vkCreateGraphicsPipelines I'm getting the following output from the MoltenVK library:
[mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 2):
Compiler encountered an internal error.
and then…

Andrew Tomazos
- 66,139
- 40
- 186
- 319
1
vote
1 answer
MacOS - Vulkan at runtime vkCreateDevice() fails when VkPhysicalDeviceFeatures wideLines = VK_TURE and doestn’t support vkCmdSetLineWidth API as well
I am new to Vulkan, and recently started learning .
I am facing issue, at runtime in vkCreateDevice() fails, when VkPhysicalDeviceFeatures is enables with
VkPhysicalDeviceFeatures features {};
features.wideLines =…

alshamsh93
- 29
- 4
1
vote
1 answer
Qt-5.14.0: Vulkan under QML causes std::system_error:: mutex lock failed
The Vulkan under QML example runs for at most a couple of seconds before crashing with the following error:
libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument
While the animation…

mkl
- 635
- 1
- 6
- 16
1
vote
1 answer
Enable instance extensions in MoltenVK
I'd like to make use of the supported extensions in MoltenVK 1.0.38, at the moment there are 47 which are printed when you initialize an instance of Vulkan. Funny thing is when I call vkEnumerateInstanceExtensionProperties, I only get 9 of…

Rafael Sabino
- 165
- 1
- 8
1
vote
1 answer
My mac reports 4 Vulkan queue families but reference says it has 1
My home computer is a late 2012 Mac Mini, it has a 3rd gen Intel IvyBridge processor (mobile model for some reason only Apple knows).
The "vulkaninfo.app" from the LunarG SDK reports 4 queue families on the integrated GPU, but public information…

DannyNiu
- 1,313
- 8
- 27
0
votes
1 answer
Vulkan loader not searching correct paths for layer files?
I'm having a problem where the vulkan loader appears to be ignoring some of the environment variables I have set. VK_LOADER_DEBUG=all works but VK_LAYER_PATH and VK_ADD_LAYER_PATH both seem to be ignored. Can anyone identify the reason for this?
%…

David Carpenter
- 1,389
- 2
- 16
- 29
0
votes
0 answers
Creating a MoltenVK Buffer Crashes iOS App Only When Downloaded Through App Store
I have been developing a game in c++ using vulkan and moltenVK for porting to iOS and Mac. The game works fine when I run it through XCode on my iPhone, but when I distribute the app through TestFlight, it crashes immediately. Here is some of the…

Ludius
- 1
0
votes
1 answer
Vulkan fails to load layer library
I am using MoltenVK on MacBook Air with Apple Silicon. I have set my environment according to instructions on Vulkan Tutorial website but when I try to run my program in Xcode I get the following two error messages from validation layer:
ERROR…

Upthinker01
- 11
- 3