From 1bb53ec785e4b8b09538c8790e6844634c66b823 Mon Sep 17 00:00:00 2001 From: "SND\\AstrorEnales_cp" Date: Sat, 8 Sep 2012 10:37:41 +0000 Subject: [PATCH] Merging some Dx10 and Dx11 Effect and GraphicsDevice code into BaseDirectX --- ...ramework.ContentPipeline.Extensions.csproj | 4 + ...rk.ContentPipeline.Extensions_Linux.csproj | 4 + ...k.ContentPipeline.Extensions_PSVita.csproj | 4 + ...entPipeline.Extensions_WindowsMetro.csproj | 4 + .../ANX.BaseDirectX/ANX.BaseDirectX.csproj | 10 +- .../ANX.BaseDirectX_Linux.csproj | 10 +- .../ANX.BaseDirectX_PSVita.csproj | 10 +- .../ANX.BaseDirectX_WindowsMetro.csproj | 10 +- RenderSystems/ANX.BaseDirectX/BaseEffect.cs | 68 ++++ .../ANX.BaseDirectX/BaseFormatConverter.cs | 26 ++ .../ANX.BaseDirectX/BaseGraphicsDevice.cs | 160 ++++++++ .../IncludeHandler.cs | 4 +- .../ANX.RenderSystem.Windows.DX10.csproj | 1 - ...ANX.RenderSystem.Windows.DX10_Linux.csproj | 1 - ...NX.RenderSystem.Windows.DX10_PSVita.csproj | 1 - ...derSystem.Windows.DX10_WindowsMetro.csproj | 1 - .../ANX.Framework.Windows.DX10/Effect_DX10.cs | 87 +---- .../GraphicsDeviceWindowsDX10.cs | 318 +++++---------- .../Helpers/IncludeHandler.cs | 39 -- .../SamplerState_DX10.cs | 2 +- .../ANX.RenderSystem.Windows.DX11.csproj | 1 - ...ANX.RenderSystem.Windows.DX11_Linux.csproj | 1 - ...NX.RenderSystem.Windows.DX11_PSVita.csproj | 1 - ...derSystem.Windows.DX11_WindowsMetro.csproj | 1 - .../Effect_DX11.cs | 83 +--- .../FormatConverter.cs | 367 ++++++++--------- .../GraphicsDeviceWindowsDX11.cs | 369 +++++++----------- .../StockShaderCodeGenerator.csproj | 4 + 28 files changed, 760 insertions(+), 831 deletions(-) create mode 100644 RenderSystems/ANX.BaseDirectX/BaseEffect.cs create mode 100644 RenderSystems/ANX.BaseDirectX/BaseGraphicsDevice.cs rename RenderSystems/{ANX.RenderSystem.Windows.DX11/Helpers => ANX.BaseDirectX}/IncludeHandler.cs (87%) delete mode 100644 RenderSystems/ANX.Framework.Windows.DX10/Helpers/IncludeHandler.cs diff --git a/ANX.Framework.ContentPipeline/ANX.Framework.ContentPipeline.Extensions.csproj b/ANX.Framework.ContentPipeline/ANX.Framework.ContentPipeline.Extensions.csproj index 495f6a63..9dd01a5b 100644 --- a/ANX.Framework.ContentPipeline/ANX.Framework.ContentPipeline.Extensions.csproj +++ b/ANX.Framework.ContentPipeline/ANX.Framework.ContentPipeline.Extensions.csproj @@ -82,6 +82,10 @@ {6899F0C9-70B9-4EB0-9DD3-E598D4BE3E35} ANX.Framework + + {A4D3AD34-E49C-4142-8620-2AFF44ED6719} + ANX.BaseDirectX + {5BE49183-2F6F-4527-AC90-D816911FCF90} ANX.RenderSystem.Windows.DX10 diff --git a/ANX.Framework.ContentPipeline/ANX.Framework.ContentPipeline.Extensions_Linux.csproj b/ANX.Framework.ContentPipeline/ANX.Framework.ContentPipeline.Extensions_Linux.csproj index 62535f30..1967efdc 100644 --- a/ANX.Framework.ContentPipeline/ANX.Framework.ContentPipeline.Extensions_Linux.csproj +++ b/ANX.Framework.ContentPipeline/ANX.Framework.ContentPipeline.Extensions_Linux.csproj @@ -80,6 +80,10 @@ {6899F0C9-70B9-4EB0-9DD3-E598D4BE3E35} ANX.Framework + + {A4D3AD34-E49C-4142-8620-2AFF44ED6719} + ANX.BaseDirectX + {5BE49183-2F6F-4527-AC90-D816911FCF90} ANX.RenderSystem.Windows.DX10 diff --git a/ANX.Framework.ContentPipeline/ANX.Framework.ContentPipeline.Extensions_PSVita.csproj b/ANX.Framework.ContentPipeline/ANX.Framework.ContentPipeline.Extensions_PSVita.csproj index 426a1b6b..d475becf 100644 --- a/ANX.Framework.ContentPipeline/ANX.Framework.ContentPipeline.Extensions_PSVita.csproj +++ b/ANX.Framework.ContentPipeline/ANX.Framework.ContentPipeline.Extensions_PSVita.csproj @@ -83,6 +83,10 @@ {6899F0C9-70B9-4EB0-9DD3-E598D4BE3E35} ANX.Framework + + {A4D3AD34-E49C-4142-8620-2AFF44ED6719} + ANX.BaseDirectX + {5BE49183-2F6F-4527-AC90-D816911FCF90} ANX.RenderSystem.Windows.DX10 diff --git a/ANX.Framework.ContentPipeline/ANX.Framework.ContentPipeline.Extensions_WindowsMetro.csproj b/ANX.Framework.ContentPipeline/ANX.Framework.ContentPipeline.Extensions_WindowsMetro.csproj index b9daa2f5..06927117 100644 --- a/ANX.Framework.ContentPipeline/ANX.Framework.ContentPipeline.Extensions_WindowsMetro.csproj +++ b/ANX.Framework.ContentPipeline/ANX.Framework.ContentPipeline.Extensions_WindowsMetro.csproj @@ -81,6 +81,10 @@ {6899F0C9-70B9-4EB0-9DD3-E598D4BE3E35} ANX.Framework + + {A4D3AD34-E49C-4142-8620-2AFF44ED6719} + ANX.BaseDirectX +