The winadapter.h provides typedefs and defines to enable the
D3D/DXCore headers to be included as-is when targeting non-
Windows platforms.
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7937>
#include "util/u_dynarray.h"
#include <stdint.h>
+#ifndef _WIN32
+#include <wsl/winadapter.h>
+#endif
+
#define D3D12_IGNORE_SDK_LAYERS
#include <directx/d3d12.h>
#include "pipebuffer/pb_buffer.h"
#include "util/u_atomic.h"
+#ifndef _WIN32
+#include <wsl/winadapter.h>
+#endif
+
#include <directx/d3d12.h>
struct d3d12_bufmgr;
#include "util/u_inlines.h"
+#ifndef _WIN32
+#include <wsl/winadapter.h>
+#endif
+
#include <directx/d3d12.h>
struct pipe_screen;
#include "pipe/p_state.h"
+#ifndef _WIN32
+#include <wsl/winadapter.h>
+#endif
+
#define D3D12_IGNORE_SDK_LAYERS
#include <directx/d3d12.h>
#include "util/slab.h"
+#ifndef _WIN32
+#include <wsl/winadapter.h>
+#endif
+
#define D3D12_IGNORE_SDK_LAYERS
#include <directx/d3d12.h>
#ifndef D3D12_RESOURCE_STATE_H
#define D3D12_RESOURCE_STATE_H
+#ifndef _WIN32
+#include <wsl/winadapter.h>
+#endif
+
#include <vector>
#include <assert.h>
#include <directx/d3d12.h>