Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/libktx/external/dfdutils/vk2dfd.c
9906 views
1
/* -*- tab-width: 4; -*- */
2
/* vi: set sw=2 ts=4 expandtab: */
3
4
/* Copyright 2019-2020 Mark Callow
5
* SPDX-License-Identifier: Apache-2.0
6
*/
7
8
/**
9
* @file
10
* @~English
11
* @brief Create a DFD for a VkFormat.
12
*/
13
14
#include "dfd.h"
15
16
/**
17
* @~English
18
* @brief Create a DFD matching a VkFormat.
19
*
20
* @param[in] format VkFormat for which to create a DFD.
21
*
22
* @return pointer to the created DFD or 0 if format not supported or
23
* unrecognized. Caller is responsible for freeing the created
24
* DFD.
25
*/
26
uint32_t*
27
vk2dfd(enum VkFormat format)
28
{
29
switch (format) {
30
#include "vk2dfd.inl"
31
default: return 0;
32
}
33
}
34
35
36