fixed some silly issues

This commit is contained in:
georgemoralis 2023-09-22 00:05:00 +03:00
parent 0859964888
commit 12382ddac4
2 changed files with 20 additions and 15 deletions

View file

@ -18,6 +18,12 @@ constexpr int VULKAN_QUEUE_GFX = 8;
constexpr int VULKAN_QUEUE_UTIL = 9;
constexpr int VULKAN_QUEUE_PRESENT = 10;
template <typename T>
const T& clamp(const T& x, const T& min, const T& max) {
if (x < min) return min;
if (x > max) return max;
return x;
}
void vulkanCreate(Emulator::WindowCtx* ctx);
void vulkanGetInstanceExtensions(Emulator::VulkanExt* ext);