summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/assets/Shaders/TextureIntTestDX.psh
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2019-12-25 03:23:32 +0000
committerassiduous <assiduous@diligentgraphics.com>2019-12-25 03:23:32 +0000
commit040e4cb7e454d532d249d2a5de6f2aba0c902baa (patch)
treec89a3a009e2d145c3c3cfdb053ad7392eedf6d98 /Tests/TestApp/assets/Shaders/TextureIntTestDX.psh
parentAdded codacy bages (diff)
downloadDiligentEngine-040e4cb7e454d532d249d2a5de6f2aba0c902baa.tar.gz
DiligentEngine-040e4cb7e454d532d249d2a5de6f2aba0c902baa.zip
Updated submodules; removed tests folder (tests are now part of every submodule)
Diffstat (limited to 'Tests/TestApp/assets/Shaders/TextureIntTestDX.psh')
-rw-r--r--Tests/TestApp/assets/Shaders/TextureIntTestDX.psh28
1 files changed, 0 insertions, 28 deletions
diff --git a/Tests/TestApp/assets/Shaders/TextureIntTestDX.psh b/Tests/TestApp/assets/Shaders/TextureIntTestDX.psh
deleted file mode 100644
index 4dfc67f..0000000
--- a/Tests/TestApp/assets/Shaders/TextureIntTestDX.psh
+++ /dev/null
@@ -1,28 +0,0 @@
-
-Texture2D<DATA_TYPE> g_tex2DTest : register(t4);
-
-struct VSOut
-{
- float4 f4Position : SV_Position;
- float2 f2UV : UV;
-};
-
-
-float4 main(VSOut In) : SV_Target
-{
- float Width, Height;
- g_tex2DTest.GetDimensions(Width, Height);
- float2 IJ = In.f2UV * float2(Width, Height);
- float4 Color0 = g_tex2DTest.Load( int3(IJ, 0) ) / 127.f;
- float4 Color1 = g_tex2DTest.Load( int3(IJ/4, 2) ) / 127.f;
- float4 Color2 = g_tex2DTest.Load( int3(IJ/16, 4) ) / 127.f;
- float4 Color3 = g_tex2DTest.Load( int3(IJ/32, 5) ) / 127.f;
- if( In.f2UV.x < 0.5 && In.f2UV.y < 0.5 )
- return Color0;
- else if( In.f2UV.x > 0.5 && In.f2UV.y < 0.5 )
- return Color1;
- else if( In.f2UV.x < 0.5 && In.f2UV.y > 0.5 )
- return Color2;
- else
- return Color3;
-}