MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / FatalError

Function FatalError

ThunkLibs/libvulkan/Guest.cpp:43–48  ·  view source on GitHub ↗

Fatally erroring function with a thunk-like interface. This is used as a placeholder for unknown Vulkan functions

Source from the content-addressed store, hash-verified

41
42// Fatally erroring function with a thunk-like interface. This is used as a placeholder for unknown Vulkan functions
43[[noreturn]]
44static 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
50static PFN_vkVoidFunction MakeGuestCallable(const char* origin, PFN_vkVoidFunction func, const char* name) {
51 auto It = HostPtrInvokers.find(name);

Callers

nothing calls this directly

Calls 1

fprintfFunction · 0.85

Tested by

no test coverage detected