2021-01-21 07:39:11 +00:00
|
|
|
#ifndef __QF_Vulkan_scrap_h
|
|
|
|
#define __QF_Vulkan_scrap_h
|
2021-01-13 01:43:23 +00:00
|
|
|
|
2021-01-16 06:39:36 +00:00
|
|
|
#include "QF/image.h"
|
2021-01-13 01:43:23 +00:00
|
|
|
|
|
|
|
typedef struct scrap_s scrap_t;
|
|
|
|
|
2021-01-19 16:25:54 +00:00
|
|
|
struct qfv_stagebuf_s;
|
|
|
|
struct qfv_device_s;
|
|
|
|
|
2021-01-31 10:58:55 +00:00
|
|
|
scrap_t *QFV_CreateScrap (struct qfv_device_s *device, const char *name,
|
|
|
|
int size, QFFormat format,
|
|
|
|
struct qfv_stagebuf_s *stage);
|
2021-01-21 17:13:58 +00:00
|
|
|
size_t QFV_ScrapSize (scrap_t *scrap) __attribute__((pure));
|
2021-01-13 01:43:23 +00:00
|
|
|
void QFV_ScrapClear (scrap_t *scrap);
|
|
|
|
void QFV_DestroyScrap (scrap_t *scrap);
|
|
|
|
VkImageView QFV_ScrapImageView (scrap_t *scrap) __attribute__((pure));
|
2022-03-30 06:54:07 +00:00
|
|
|
struct subpic_s *QFV_ScrapSubpic (scrap_t *scrap, int width, int height);
|
|
|
|
void QFV_SubpicDelete (struct subpic_s *subpic);
|
2021-01-13 01:43:23 +00:00
|
|
|
|
2022-03-30 06:54:07 +00:00
|
|
|
void *QFV_SubpicBatch (struct subpic_s *subpic, struct qfv_stagebuf_s *stage);
|
2021-01-13 01:43:23 +00:00
|
|
|
|
2021-01-15 13:50:04 +00:00
|
|
|
void QFV_ScrapFlush (scrap_t *scrap);
|
2021-01-13 01:43:23 +00:00
|
|
|
|
2021-01-21 07:39:11 +00:00
|
|
|
#endif//__QF_Vulkan_scrap_h
|