rtengine/src/renderer/vk/utils.c
Kevin Trogant a6f3a04993
Some checks failed
Ubuntu Cross to Win64 / Cross Compile with ming64 (1.4.0, ubuntu-latest) (push) Failing after 1m38s
Ubuntu Cross to Win64 / Compile for linux (1.4.0, ubuntu-latest) (push) Successful in 1m25s
feat(vk): Semaphore pool
- Also adds atomic functions for linux (CAS & exchange)
- Also adds rt_bool32 type
2024-08-07 22:23:52 +02:00

12 lines
264 B
C

#include "utils.h"
rt_result rtVkResultToRTResult(VkResult result) {
switch (result) {
case VK_SUCCESS:
return RT_SUCCESS;
case VK_ERROR_OUT_OF_HOST_MEMORY:
return RT_OUT_OF_MEMORY;
default:
return RT_UNKNOWN_ERROR;
}
}