ReactOS 0.4.17-dev-934-g091855f
vkd3d_types.h
Go to the documentation of this file.
1/*
2 * Copyright 2016-2018 Józef Kucia for CodeWeavers
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#ifndef __VKD3D_TYPES_H
20#define __VKD3D_TYPES_H
21
22#include <stdarg.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif /* __cplusplus */
27
34#define VKD3D_FORCE_32_BIT_ENUM(name) name##_FORCE_32BIT = 0x7fffffff
35
41{
62
64};
65
66typedef void (*PFN_vkd3d_log)(const char *format, va_list args);
67
68#ifdef _WIN32
69# define VKD3D_IMPORT
70# define VKD3D_EXPORT
71#elif defined(__GNUC__)
72# define VKD3D_IMPORT
73# define VKD3D_EXPORT __attribute__((visibility("default")))
74#else
75# define VKD3D_IMPORT
76# define VKD3D_EXPORT
77#endif
78
79#ifdef __cplusplus
80}
81#endif /* __cplusplus */
82
83#endif /* __VKD3D_TYPES_H */
char * va_list
Definition: vadefs.h:50
#define args
Definition: format.c:66
vkd3d_result
Definition: vkd3d_types.h:41
@ VKD3D_ERROR_INVALID_ARGUMENT
Definition: vkd3d_types.h:51
@ VKD3D_ERROR_NOT_IMPLEMENTED
Definition: vkd3d_types.h:55
@ VKD3D_ERROR_KEY_ALREADY_EXISTS
Definition: vkd3d_types.h:57
@ VKD3D_ERROR_INVALID_SHADER
Definition: vkd3d_types.h:53
@ VKD3D_FALSE
Definition: vkd3d_types.h:45
@ VKD3D_ERROR_MORE_DATA
Definition: vkd3d_types.h:61
@ VKD3D_ERROR
Definition: vkd3d_types.h:47
@ VKD3D_OK
Definition: vkd3d_types.h:43
@ VKD3D_ERROR_OUT_OF_MEMORY
Definition: vkd3d_types.h:49
@ VKD3D_ERROR_NOT_FOUND
Definition: vkd3d_types.h:59
#define VKD3D_FORCE_32_BIT_ENUM(name)
Definition: vkd3d_types.h:34
void(* PFN_vkd3d_log)(const char *format, va_list args)
Definition: vkd3d_types.h:66