xash3d-fwgs/ref_vk/vk_image.h

29 lines
558 B
C
Raw Normal View History

2021-11-21 22:40:11 +01:00
#pragma once
#include "vk_core.h"
#include "vk_devmem.h"
2021-11-21 22:40:11 +01:00
typedef struct {
// FIXME better memory allocation
// OCHEN PLOHO
vk_devmem_t devmem;
2021-11-21 22:40:11 +01:00
VkImage image;
VkImageView view;
uint32_t width, height;
int mips;
} xvk_image_t;
typedef struct {
const char *debug_name;
uint32_t width, height;
int mips, layers;
2021-11-21 22:40:11 +01:00
VkFormat format;
VkImageTiling tiling;
VkImageUsageFlags usage;
qboolean has_alpha;
qboolean is_cubemap;
2021-11-21 22:40:11 +01:00
} xvk_image_create_t;
xvk_image_t XVK_ImageCreate(const xvk_image_create_t *create);
void XVK_ImageDestroy(xvk_image_t *img);