summaryrefslogtreecommitdiffstats
path: root/video/out/vulkan/formats.h
blob: 22782a695893cbd88c24771907ba7aa76d5bd5ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include "video/out/gpu/ra.h"
#include "common.h"

struct vk_format {
    const char *name;
    VkFormat iformat;    // vulkan format enum
    int components;      // how many components are there
    int bytes;           // how many bytes is a texel
    int bits[4];         // how many bits per component
    enum ra_ctype ctype; // format representation type
    bool fucked_order;   // used for formats which are not simply rgba
};

extern const struct vk_format vk_formats[];