vkd3d  1.3
The vkd3d 3D Graphics Library
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 #ifdef __cplusplus
23 extern "C" {
24 #endif /* __cplusplus */
25 
32 #define VKD3D_FORCE_32_BIT_ENUM(name) name##_FORCE_32BIT = 0x7fffffff
33 
39 {
41  VKD3D_OK = 0,
52 
53  VKD3D_FORCE_32_BIT_ENUM(VKD3D_RESULT),
54 };
55 
56 #ifdef _WIN32
57 # define VKD3D_IMPORT __declspec(dllimport)
58 # define VKD3D_EXPORT __declspec(dllexport)
59 #elif defined(__GNUC__)
60 # define VKD3D_IMPORT
61 # define VKD3D_EXPORT __attribute__((visibility("default")))
62 #else
63 # define VKD3D_IMPORT
64 # define VKD3D_EXPORT
65 #endif
66 
67 #ifdef __cplusplus
68 }
69 #endif /* __cplusplus */
70 
71 #endif /* __VKD3D_TYPES_H */
VKD3D_ERROR_INVALID_SHADER
@ VKD3D_ERROR_INVALID_SHADER
A shader passed to a vkd3d function was invalid.
Definition: vkd3d_types.h:49
VKD3D_ERROR_INVALID_ARGUMENT
@ VKD3D_ERROR_INVALID_ARGUMENT
One or more parameters passed to a vkd3d function were invalid.
Definition: vkd3d_types.h:47
VKD3D_ERROR_OUT_OF_MEMORY
@ VKD3D_ERROR_OUT_OF_MEMORY
There are not enough resources available to complete the operation.
Definition: vkd3d_types.h:45
VKD3D_ERROR
@ VKD3D_ERROR
An unspecified failure occurred.
Definition: vkd3d_types.h:43
VKD3D_ERROR_NOT_IMPLEMENTED
@ VKD3D_ERROR_NOT_IMPLEMENTED
The operation is not implemented in this version of vkd3d.
Definition: vkd3d_types.h:51
VKD3D_OK
@ VKD3D_OK
Success.
Definition: vkd3d_types.h:41
vkd3d_result
vkd3d_result
Result codes returned by some vkd3d functions.
Definition: vkd3d_types.h:38