Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
Loading...
Searching...
No Matches
async_backend.h
Go to the documentation of this file.
1
6#ifndef ASYNC_BACKEND_H
7#define ASYNC_BACKEND_H
8
9#include "async_loader.h"
10
11enum { MSG_BUF_SIZE = 128 };
12
18typedef struct {
19 bool (*load)(const char* path, AsyncRequest* req);
20 void (*convert)(void* dst_ptr, AsyncRequest* req);
21 void (*cleanup)(AsyncRequest* req);
23
26
27/* --- Prototypes des points d'accès des modules métiers --- */
30
31#endif /* ASYNC_BACKEND_H */
AssetType
Definition asset_manager.h:17
@ MSG_BUF_SIZE
Definition async_backend.h:11
const AsyncBackendInterface * async_backend_stb_get(void)
Definition async_backend_stb.c:83
const AsyncBackendInterface * async_backend_get(AssetType type)
Definition async_backend.c:11
const AsyncBackendInterface * async_backend_ktx_get(void)
Definition async_backend_ktx.c:166
Threaded asynchronous file loader engine (Format-agnostic).
Table de pointeurs de fonctions définissant le cycle de vie d'un chargement d'asset.
Definition async_backend.h:18
Données de la requête asynchrone transférées entre les threads.
Definition async_loader.h:33