mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
include: Prefix public header file names with vkd3d.
Prevents possible clashes when using vkd3d with external Win32 headers. Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f8c20beede
commit
abff3ca469
22
Makefile.am
22
Makefile.am
@ -3,22 +3,22 @@ AM_CFLAGS = @VKD3D_CFLAGS@
|
|||||||
AM_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/include/dummy -I$(srcdir)/include/private
|
AM_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/include/dummy -I$(srcdir)/include/private
|
||||||
|
|
||||||
widl_headers = \
|
widl_headers = \
|
||||||
include/d3d12.h \
|
include/vkd3d_d3d12.h \
|
||||||
include/dxgi.h \
|
include/vkd3d_dxgi.h \
|
||||||
include/dxgi1_2.h \
|
include/vkd3d_dxgi1_2.h \
|
||||||
include/dxgi1_3.h \
|
include/vkd3d_dxgi1_3.h \
|
||||||
include/dxgi1_4.h \
|
include/vkd3d_dxgi1_4.h \
|
||||||
include/dxgibase.h \
|
include/vkd3d_dxgibase.h \
|
||||||
include/dxgiformat.h \
|
include/vkd3d_dxgiformat.h \
|
||||||
include/dxgitype.h
|
include/vkd3d_dxgitype.h
|
||||||
|
|
||||||
vkd3d_public_headers = \
|
vkd3d_public_headers = \
|
||||||
include/d3d12.h \
|
|
||||||
include/dummy/rpc.h \
|
include/dummy/rpc.h \
|
||||||
include/dummy/rpcndr.h \
|
include/dummy/rpcndr.h \
|
||||||
include/dxgibase.h \
|
|
||||||
include/dxgiformat.h \
|
|
||||||
include/vkd3d.h \
|
include/vkd3d.h \
|
||||||
|
include/vkd3d_d3d12.h \
|
||||||
|
include/vkd3d_dxgibase.h \
|
||||||
|
include/vkd3d_dxgiformat.h \
|
||||||
include/vkd3d_shader.h \
|
include/vkd3d_shader.h \
|
||||||
include/vkd3d_utils.h \
|
include/vkd3d_utils.h \
|
||||||
include/vkd3d_windows.h
|
include/vkd3d_windows.h
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
#include <vkd3d_windows.h>
|
#include <vkd3d_windows.h>
|
||||||
#define WIDL_C_INLINE_WRAPPERS
|
#define WIDL_C_INLINE_WRAPPERS
|
||||||
#define COBJMACROS
|
#define COBJMACROS
|
||||||
#include <d3d12.h>
|
#include <vkd3d_d3d12.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*x))
|
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*x))
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <dxgi1_4.h>
|
#include <vkd3d_dxgi1_4.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
16
include/.gitignore
vendored
16
include/.gitignore
vendored
@ -1,11 +1,11 @@
|
|||||||
config.h
|
config.h
|
||||||
config.h.in
|
config.h.in
|
||||||
d3d12.h
|
|
||||||
dxgi.h
|
|
||||||
dxgi1_2.h
|
|
||||||
dxgi1_3.h
|
|
||||||
dxgi1_4.h
|
|
||||||
dxgibase.h
|
|
||||||
dxgiformat.h
|
|
||||||
dxgitype.h
|
|
||||||
stamp-h1
|
stamp-h1
|
||||||
|
vkd3d_d3d12.h
|
||||||
|
vkd3d_dxgi.h
|
||||||
|
vkd3d_dxgi1_2.h
|
||||||
|
vkd3d_dxgi1_3.h
|
||||||
|
vkd3d_dxgi1_4.h
|
||||||
|
vkd3d_dxgibase.h
|
||||||
|
vkd3d_dxgiformat.h
|
||||||
|
vkd3d_dxgitype.h
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#ifndef VKD3D_NO_WIN32_TYPES
|
#ifndef VKD3D_NO_WIN32_TYPES
|
||||||
# include "vkd3d_windows.h"
|
# include "vkd3d_windows.h"
|
||||||
# include "d3d12.h"
|
# include "vkd3d_d3d12.h"
|
||||||
#endif /* VKD3D_NO_WIN32_TYPES */
|
#endif /* VKD3D_NO_WIN32_TYPES */
|
||||||
|
|
||||||
#include <vulkan/vulkan.h>
|
#include <vulkan/vulkan.h>
|
||||||
|
@ -18,9 +18,9 @@
|
|||||||
|
|
||||||
import "vkd3d_windows.h";
|
import "vkd3d_windows.h";
|
||||||
|
|
||||||
import "dxgibase.idl";
|
import "vkd3d_dxgibase.idl";
|
||||||
|
|
||||||
#include "unknown.idl"
|
#include "vkd3d_unknown.idl"
|
||||||
|
|
||||||
const UINT D3D12_CS_TGSM_REGISTER_COUNT = 8192;
|
const UINT D3D12_CS_TGSM_REGISTER_COUNT = 8192;
|
||||||
const UINT D3D12_MAX_ROOT_COST = 64;
|
const UINT D3D12_MAX_ROOT_COST = 64;
|
@ -17,9 +17,9 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import "dxgitype.idl";
|
import "vkd3d_dxgitype.idl";
|
||||||
|
|
||||||
#include "unknown.idl"
|
#include "vkd3d_unknown.idl"
|
||||||
|
|
||||||
typedef enum DXGI_SWAP_EFFECT
|
typedef enum DXGI_SWAP_EFFECT
|
||||||
{
|
{
|
@ -17,7 +17,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import "dxgi.idl";
|
import "vkd3d_dxgi.idl";
|
||||||
|
|
||||||
typedef enum DXGI_SCALING
|
typedef enum DXGI_SCALING
|
||||||
{
|
{
|
@ -17,7 +17,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import "dxgi1_2.idl";
|
import "vkd3d_dxgi1_2.idl";
|
||||||
|
|
||||||
typedef struct DXGI_MATRIX_3X2_F DXGI_MATRIX_3X2_F;
|
typedef struct DXGI_MATRIX_3X2_F DXGI_MATRIX_3X2_F;
|
||||||
|
|
@ -17,7 +17,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import "dxgi1_3.idl";
|
import "vkd3d_dxgi1_3.idl";
|
||||||
|
|
||||||
[
|
[
|
||||||
local,
|
local,
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
import "vkd3d_windows.h";
|
import "vkd3d_windows.h";
|
||||||
|
|
||||||
import "dxgiformat.idl";
|
import "vkd3d_dxgiformat.idl";
|
||||||
|
|
||||||
cpp_quote("#ifndef DXGI_ERROR_INVALID_CALL")
|
cpp_quote("#ifndef DXGI_ERROR_INVALID_CALL")
|
||||||
cpp_quote("#define DXGI_ERROR_INVALID_CALL _HRESULT_TYPEDEF_(0x887a0001)")
|
cpp_quote("#define DXGI_ERROR_INVALID_CALL _HRESULT_TYPEDEF_(0x887a0001)")
|
@ -18,7 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import "vkd3d_windows.h";
|
import "vkd3d_windows.h";
|
||||||
import "dxgibase.idl";
|
import "vkd3d_dxgibase.idl";
|
||||||
|
|
||||||
typedef enum DXGI_COLOR_SPACE_TYPE
|
typedef enum DXGI_COLOR_SPACE_TYPE
|
||||||
{
|
{
|
@ -41,7 +41,7 @@ typedef int HRESULT;
|
|||||||
#include "vkd3d_test.h"
|
#include "vkd3d_test.h"
|
||||||
#include "vkd3d_windows.h"
|
#include "vkd3d_windows.h"
|
||||||
#define WIDL_C_INLINE_WRAPPERS
|
#define WIDL_C_INLINE_WRAPPERS
|
||||||
#include "d3d12.h"
|
#include "vkd3d_d3d12.h"
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
@ -49,7 +49,7 @@ typedef int HRESULT;
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# include "dxgi1_4.h"
|
# include "vkd3d_dxgi1_4.h"
|
||||||
#else
|
#else
|
||||||
# include <pthread.h>
|
# include <pthread.h>
|
||||||
# include "vkd3d_utils.h"
|
# include "vkd3d_utils.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user