-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
Using SetDefaultGetInstanceProcAddr on MacOS just causes the error vulkan: error loading default getProcAddr. This is because:
- First, this function calls
setDefaultProcAddrLine 22 in 956e385
C.setDefaultProcAddr() - In
setDefaultProcAddr, it callsgetDefaultProcAddrLine 14 in 956e385
getInstanceProcAddress = getDefaultProcAddr(); - In
getDefaultProcAddr, for MacOS, it just returnsNULLLines 35 to 37 in 956e385
#elif defined(__APPLE__) && defined(__MACH__) // return &loaderWrap; return NULL; - In
SetDefaultGetInstanceProcAddr, it checks forisProcAddrSetLines 23 to 25 in 956e385
if C.isProcAddrSet() == 0 { return errors.New("vulkan: error loading default getProcAddr") } - In
isProcAddrSet, it checks if it is equal toNULLLine 18 in 956e385
return getInstanceProcAddress == NULL ? 0 : 1;
Therefore, on MacOS, isProcAddrSet will always return false. Why is it like this? Is there a way to get around this error? If you ignore it, you just get an error about proc addr not being set in Init.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels