diff --git a/VisualC-WinPhone/SDL/SDL-WinPhone_VS2012.vcxproj b/VisualC-WinPhone/SDL/SDL-WinPhone_VS2012.vcxproj
index 0f185bec2..4eaeca36b 100644
--- a/VisualC-WinPhone/SDL/SDL-WinPhone_VS2012.vcxproj
+++ b/VisualC-WinPhone/SDL/SDL-WinPhone_VS2012.vcxproj
@@ -397,26 +397,6 @@
true
-
-
- Pixel
- Pixel
- Pixel
- Pixel
-
-
- Pixel
- Pixel
- Pixel
- Pixel
-
-
- Vertex
- Vertex
- Vertex
- Vertex
-
-
diff --git a/VisualC-WinPhone/SDL/SDL-WinPhone_VS2012.vcxproj.filters b/VisualC-WinPhone/SDL/SDL-WinPhone_VS2012.vcxproj.filters
index 59296bf42..9535fe759 100644
--- a/VisualC-WinPhone/SDL/SDL-WinPhone_VS2012.vcxproj.filters
+++ b/VisualC-WinPhone/SDL/SDL-WinPhone_VS2012.vcxproj.filters
@@ -7,9 +7,6 @@
{abc3a7e6-f955-4cb5-8340-fae0f653e9c1}
-
- {fd67993e-5155-488b-9313-d1eb06a1b67e}
-
@@ -612,15 +609,4 @@
Source Files
-
-
- GPU Shaders
-
-
- GPU Shaders
-
-
- GPU Shaders
-
-
\ No newline at end of file
diff --git a/VisualC-WinRT/SDL/SDL-WinRT_VS2012.vcxproj b/VisualC-WinRT/SDL/SDL-WinRT_VS2012.vcxproj
index f06787f78..a63bbc8cd 100644
--- a/VisualC-WinRT/SDL/SDL-WinRT_VS2012.vcxproj
+++ b/VisualC-WinRT/SDL/SDL-WinRT_VS2012.vcxproj
@@ -324,48 +324,6 @@
-
-
- Pixel
- Pixel
- Pixel
- Pixel
- Pixel
- Pixel
- 4.0_level_9_1
- 4.0_level_9_1
- 4.0_level_9_1
- 4.0_level_9_1
- 4.0_level_9_1
- 4.0_level_9_1
-
-
- Pixel
- Pixel
- Pixel
- Pixel
- Pixel
- Pixel
- 4.0_level_9_1
- 4.0_level_9_1
- 4.0_level_9_1
- 4.0_level_9_1
-
-
- Vertex
- Vertex
- Vertex
- Vertex
- Vertex
- Vertex
- 4.0_level_9_1
- 4.0_level_9_1
- 4.0_level_9_1
- 4.0_level_9_1
- 4.0_level_9_1
- 4.0_level_9_1
-
-
{aeaea3a2-d4e6-45b1-8ec6-53d84287fc14}
Win32Proj
diff --git a/VisualC-WinRT/SDL/SDL-WinRT_VS2012.vcxproj.filters b/VisualC-WinRT/SDL/SDL-WinRT_VS2012.vcxproj.filters
index bff9c9deb..21ec9bb9d 100644
--- a/VisualC-WinRT/SDL/SDL-WinRT_VS2012.vcxproj.filters
+++ b/VisualC-WinRT/SDL/SDL-WinRT_VS2012.vcxproj.filters
@@ -1,16 +1,5 @@
-
-
- GPU Shaders
-
-
- GPU Shaders
-
-
- GPU Shaders
-
-
Source Files
@@ -652,8 +641,5 @@
{ddf04d85-6a87-4c5a-bc52-869b38f45a61}
-
- {83ed1283-8234-4c77-99a8-ffcfd8ce7381}
-
\ No newline at end of file
diff --git a/src/render/direct3d11/SDL_D3D11_PixelShader_FixedColor.hlsl b/src/render/direct3d11/SDL_D3D11_PixelShader_FixedColor.hlsl
deleted file mode 100644
index 84de709f5..000000000
--- a/src/render/direct3d11/SDL_D3D11_PixelShader_FixedColor.hlsl
+++ /dev/null
@@ -1,12 +0,0 @@
-
-struct PixelShaderInput
-{
- float4 pos : SV_POSITION;
- float2 tex : TEXCOORD0;
- float4 color : COLOR0;
-};
-
-float4 main(PixelShaderInput input) : SV_TARGET
-{
- return input.color;
-}
diff --git a/src/render/direct3d11/SDL_D3D11_PixelShader_TextureColored.hlsl b/src/render/direct3d11/SDL_D3D11_PixelShader_TextureColored.hlsl
deleted file mode 100644
index 503b4fdcb..000000000
--- a/src/render/direct3d11/SDL_D3D11_PixelShader_TextureColored.hlsl
+++ /dev/null
@@ -1,14 +0,0 @@
-Texture2D theTexture : register(t0);
-SamplerState theSampler : register(s0);
-
-struct PixelShaderInput
-{
- float4 pos : SV_POSITION;
- float2 tex : TEXCOORD0;
- float4 color : COLOR0;
-};
-
-float4 main(PixelShaderInput input) : SV_TARGET
-{
- return theTexture.Sample(theSampler, input.tex) * input.color;
-}
diff --git a/src/render/direct3d11/SDL_D3D11_VertexShader_Default.hlsl b/src/render/direct3d11/SDL_D3D11_VertexShader_Default.hlsl
deleted file mode 100644
index c625c0970..000000000
--- a/src/render/direct3d11/SDL_D3D11_VertexShader_Default.hlsl
+++ /dev/null
@@ -1,41 +0,0 @@
-
-#pragma pack_matrix( row_major )
-
-cbuffer VertexShaderConstants : register(b0)
-{
- matrix model;
- matrix view;
- matrix projection;
-};
-
-struct VertexShaderInput
-{
- float3 pos : POSITION;
- float2 tex : TEXCOORD0;
- float4 color : COLOR0;
-};
-
-struct VertexShaderOutput
-{
- float4 pos : SV_POSITION;
- float2 tex : TEXCOORD0;
- float4 color : COLOR0;
-};
-
-VertexShaderOutput main(VertexShaderInput input)
-{
- VertexShaderOutput output;
- float4 pos = float4(input.pos, 1.0f);
-
- // Transform the vertex position into projected space.
- pos = mul(pos, model);
- pos = mul(pos, view);
- pos = mul(pos, projection);
- output.pos = pos;
-
- // Pass through texture coordinates and color values without transformation
- output.tex = input.tex;
- output.color = input.color;
-
- return output;
-}
diff --git a/src/render/direct3d11/SDL_render_d3d11.cpp b/src/render/direct3d11/SDL_render_d3d11.cpp
index 56d3ba381..f285a644a 100644
--- a/src/render/direct3d11/SDL_render_d3d11.cpp
+++ b/src/render/direct3d11/SDL_render_d3d11.cpp
@@ -130,6 +130,395 @@ typedef struct
} D3D11_RenderData;
+/* Direct3D 11.x shaders
+
+ SDL's shaders are compiled into SDL itself, to simplify distribution.
+
+ All Direct3D 11.x shaders were compiled with the following:
+
+ fxc /E"main" /T "" /Fo"