mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 21:02:50 +00:00
92afe9f265
I should have known this would be necessary, but it fixes the corruption when updating the scrap.
25 lines
675 B
C
25 lines
675 B
C
#ifndef __QF_Vulkan_texture_h
|
|
#define __QF_Vulkan_texture_h
|
|
|
|
typedef enum {
|
|
QFV_LUMINANCE,
|
|
QFV_LUMINANCE_ALPHA,
|
|
QFV_RGB,
|
|
QFV_RGBA,
|
|
} QFVFormat;
|
|
|
|
typedef struct scrap_s scrap_t;
|
|
|
|
scrap_t *QFV_CreateScrap (struct qfv_device_s *device, int size,
|
|
QFVFormat format);
|
|
void QFV_ScrapClear (scrap_t *scrap);
|
|
void QFV_DestroyScrap (scrap_t *scrap);
|
|
VkImageView QFV_ScrapImageView (scrap_t *scrap) __attribute__((pure));
|
|
subpic_t *QFV_ScrapSubpic (scrap_t *scrap, int width, int height);
|
|
void QFV_SubpicDelete (subpic_t *subpic);
|
|
|
|
void *QFV_SubpicBatch (subpic_t *subpic, struct qfv_stagebuf_s *stage);
|
|
|
|
void QFV_ScrapFlush (scrap_t *scrap);
|
|
|
|
#endif//__QF_Vulkan_texture_h
|