summaryrefslogtreecommitdiffstats
path: root/tests/compute/textureSamplingTest.slang
diff options
context:
space:
mode:
authorYONGH\yongh <yonghe@outlook.com>2017-10-25 22:23:02 -0400
committerYONGH\yongh <yonghe@outlook.com>2017-10-25 22:23:02 -0400
commit1981c920f3eb40e303af264aa256147cba74e6ab (patch)
treed338c6c834daf15a3d4a8709839369fd6358553d /tests/compute/textureSamplingTest.slang
parent14d93b03c2238cfc9541f92c2d5ab24a7373b82d (diff)
render-test code cleanup
Diffstat (limited to 'tests/compute/textureSamplingTest.slang')
-rw-r--r--tests/compute/textureSamplingTest.slang14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/compute/textureSamplingTest.slang b/tests/compute/textureSamplingTest.slang
index 1661e6e3c..1aa267b89 100644
--- a/tests/compute/textureSamplingTest.slang
+++ b/tests/compute/textureSamplingTest.slang
@@ -92,12 +92,12 @@ FragmentStageOutput fragmentMain(FragmentStageInput input)
float4 val = 0.0;
val += t1D.Sample(samplerState, uv.x);
- //val += t2D.Sample(samplerState, uv);
- //val += t3D.Sample (samplerState, float3(uv, 0.5));
- //val += t1dArray.Sample(samplerState, float2(uv.x, 0.0));
- //val += t2dArray.Sample(samplerState, float3(uv, 0.0));
- //val += tCubeArray.Sample(samplerState, float4(uv, 0.5, 0.0));
- //val += tCube.Sample(samplerState, float3(uv, 0.5));
- outputBuffer[0] = 6.0 + val.x;
+ val += t2D.Sample(samplerState, uv);
+ val += t3D.Sample (samplerState, float3(uv, 0.5));
+ val += t1dArray.Sample(samplerState, float2(uv.x, 0.0));
+ val += t2dArray.Sample(samplerState, float3(uv, 0.0));
+ val += tCubeArray.Sample(samplerState, float4(uv, 0.5, 0.0));
+ val += tCube.Sample(samplerState, float3(uv, 0.5));
+ outputBuffer[0] = val.x;
return output;
} \ No newline at end of file