vulkan animation

This commit is contained in:
Jorijn van der Graaf 2026-01-30 00:09:37 +01:00
commit db1616ff0e
4 changed files with 30 additions and 6 deletions

View file

@ -76,6 +76,7 @@ export namespace Crafter {
class MouseElement;
class Window {
public:
FrameTime currentFrameTime;
std::int32_t width;
std::int32_t height;
std::chrono::time_point<std::chrono::high_resolution_clock> lastFrameBegin;
@ -300,7 +301,7 @@ export namespace Crafter {
xkb_keymap* xkb_keymap;
xkb_context* xkb_context = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
xkb_state* xkb_state;
Event<VkCommandBuffer> onRender;
Event<void> onRender;
std::vector<VkDescriptorSet> descriptorsRt;
void Render();
void QueueRender();