From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/GfxDevice/d3d11/D3D11Includes.h | 49 +++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Runtime/GfxDevice/d3d11/D3D11Includes.h (limited to 'Runtime/GfxDevice/d3d11/D3D11Includes.h') diff --git a/Runtime/GfxDevice/d3d11/D3D11Includes.h b/Runtime/GfxDevice/d3d11/D3D11Includes.h new file mode 100644 index 0000000..7629ef7 --- /dev/null +++ b/Runtime/GfxDevice/d3d11/D3D11Includes.h @@ -0,0 +1,49 @@ +#pragma once + + +#if UNITY_WP8 + +#include + +#include +#include + +typedef struct _D3D11_SIGNATURE_PARAMETER_DESC +{ + LPCSTR SemanticName; // Name of the semantic + UINT SemanticIndex; // Index of the semantic + UINT Register; // Number of member variables + D3D_NAME SystemValueType;// A predefined system value, or D3D_NAME_UNDEFINED if not applicable + D3D_REGISTER_COMPONENT_TYPE ComponentType; // Scalar type (e.g. uint, float, etc.) + BYTE Mask; // Mask to indicate which components of the register + // are used (combination of D3D10_COMPONENT_MASK values) + BYTE ReadWriteMask; // Mask to indicate whether a given component is + // never written (if this is an output signature) or + // always read (if this is an input signature). + // (combination of D3D10_COMPONENT_MASK values) + UINT Stream; // Stream index + D3D_MIN_PRECISION MinPrecision; // Minimum desired interpolation precision +} D3D11_SIGNATURE_PARAMETER_DESC; + +#elif UNITY_METRO + +#include +#include +#if UNITY_METRO_VS2013 +#include +#endif +#include + +#else + +#include "External/DirectX/builds/dx11include/DXGI.h" +#include "External/DirectX/builds/dx11include/D3D11.h" +#include "External/DirectX/builds/dx11include/d3d11_1.h" +#include "External/DirectX/builds/dx11include/D3D11Shader.h" + +#define D3D_NAME D3D10_NAME +#define D3D_REGISTER_COMPONENT_TYPE D3D10_REGISTER_COMPONENT_TYPE + +#endif + +#include "D3D11Debug.h" -- cgit v1.1-26-g67d0