Fatally erroring function with a thunk-like interface. This is used as a placeholder for unknown Vulkan functions
| 41 | |
| 42 | // Fatally erroring function with a thunk-like interface. This is used as a placeholder for unknown Vulkan functions |
| 43 | [[noreturn]] |
| 44 | static void FatalError(void* raw_args) { |
| 45 | auto called_function = reinterpret_cast<PackedArguments<void, uintptr_t>*>(raw_args)->a0; |
| 46 | fprintf(stderr, "FATAL: Called unknown Vulkan function at address %p\n", reinterpret_cast<void*>(called_function)); |
| 47 | __builtin_trap(); |
| 48 | } |
| 49 | |
| 50 | static PFN_vkVoidFunction MakeGuestCallable(const char* origin, PFN_vkVoidFunction func, const char* name) { |
| 51 | auto It = HostPtrInvokers.find(name); |