mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-12 21:52:32 +00:00
eeda04e3c9
This makes debugging with renderdoc and validation messages much easier (no more "what buffer is that?").
23 lines
737 B
C
23 lines
737 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,
|
|
const char *name);
|
|
VkImageView Vulkan_TexImageView (qfv_tex_t *tex) __attribute__((pure));
|
|
void Vulkan_UnloadTex (struct vulkan_ctx_s *ctx, qfv_tex_t *tex);
|
|
void Vulkan_Texture_Init (struct vulkan_ctx_s *ctx);
|
|
void Vulkan_Texture_Shutdown (struct vulkan_ctx_s *ctx);
|
|
|
|
#endif//__QF_Vulkan_qf_texture_h
|