2
3
4
5
9#include "Render/Vulkan/VulkanRenderBackend.h"
11#include <GLFW/glfw3.h>
16
17
25
26
30
31
32 const auto state = glfwGetKey(window, keycode);
34 return state == GLFW_PRESS || state == GLFW_REPEAT;
42
43
47
48
49 const auto state = glfwGetMouseButton(window, button);
51 return state == GLFW_PRESS;
59
60
64
65
67 glfwGetCursorPos(window, &xPos, &yPos);
69 return {
static_cast<
float>(xPos),
static_cast<
float>(yPos) };
76 auto [x, y] = GetMousePositionImpl();
84 auto [x, y] = GetMousePositionImpl();
#define SPICES_PROFILE_ZONE
static VulkanState & GetState()
Get VulkanState in use.
This class defines the render backend behaves of Vulkan.