-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathloadingscreen.h
More file actions
36 lines (27 loc) · 761 Bytes
/
loadingscreen.h
File metadata and controls
36 lines (27 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef __LOADINGSCREEN_H__
#define __LOADINGSCREEN_H__
#include <stdint.h>
#include <stdbool.h>
#include "vulkan/vulkan.h"
#include "system/threads.h"
#include "image/image.h"
#include "ui/ui.h"
typedef struct
{
VkRenderPass renderPass;
VkFramebuffer framebuffer[VKU_MAX_FRAME_COUNT];
VkFence frameFence;
VkSemaphore completeSemaphore;
VkDescriptorPool descriptorPool;
VkCommandPool commandPool;
VkCommandBuffer commandBuffer;
VkuImage_t logo;
uint32_t numItems;
uint32_t currentCount;
uint32_t loadingGraphID;
UI_t UI;
} LoadingScreen_t;
bool LoadingScreenInit(LoadingScreen_t *loadingScreen, uint32_t numItems);
void LoadingScreenAdvance(LoadingScreen_t *loadingScreen);
void DestroyLoadingScreen(LoadingScreen_t *loadingScreen);
#endif