mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 16:37:30 +00:00
0f81432090
The textures for an entire model are loaded into a single memory object with shared between multiple images.
18 lines
492 B
C
18 lines
492 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;
|
|
|
|
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
|