mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 13:10:34 +00:00
e0e6677bd3
Things aren't quite right with them (sky texture is very wrong), but the heavy lifting is done.
20 lines
600 B
C
20 lines
600 B
C
#ifndef __QF_Vulkan_qf_texture_h
|
|
#define __QF_Vulkan_qf_texture_h
|
|
|
|
#include "QF/image.h"
|
|
#include "QF/Vulkan/qf_vid.h"
|
|
|
|
typedef struct qfv_tex_s {
|
|
VkDeviceMemory memory;
|
|
size_t offset;
|
|
VkImage image;
|
|
VkImageView view;
|
|
} qfv_tex_t;
|
|
|
|
void Vulkan_ExpandPalette (byte *dst, const byte *src, const byte *palette,
|
|
int alpha, int count);
|
|
qfv_tex_t *Vulkan_LoadTex (struct vulkan_ctx_s *ctx, tex_t *tex, int mip);
|
|
VkImageView Vulkan_TexImageView (qfv_tex_t *tex) __attribute__((pure));
|
|
void Vulkan_UnloadTex (struct vulkan_ctx_s *ctx, qfv_tex_t *tex);
|
|
|
|
#endif//__QF_Vulkan_qf_texture_h
|