mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-22 03:15:01 +00:00
fixed some silly issues
This commit is contained in:
parent
0859964888
commit
12382ddac4
2 changed files with 20 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue