Skip to content
Snippets Groups Projects
Commit a696fd1a authored by LoopDawg's avatar LoopDawg
Browse files

HLSL: add test coverage for sub-vec4 texture intrinsics

This changes no functional code.  There was a bit of a testing hole
in that textures templatized on sub-vec4 types were not being exercised
with any intrinsics.  This adds some basic sanity coverage of that case.
parent ae99875e
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
Texture2DMS <float> g_tTex2dmsf1;
Texture2DMS <float2> g_tTex2dmsf2;
Texture2DMS <float3> g_tTex2dmsf3;
Texture2DMS <float4> g_tTex2dmsf4;
Texture2D <float> g_tTex2df1;
Texture2D <float2> g_tTex2df2;
Texture2D <float3> g_tTex2df3;
Texture2D <float4> g_tTex2df4;
SamplerState g_sSamp;
float4 main()
{
uint MipLevel;
uint WidthU;
uint HeightU;
uint ElementsU;
uint DepthU;
uint NumberOfLevelsU;
uint NumberOfSamplesU;
g_tTex2dmsf1 . GetDimensions(WidthU, HeightU, NumberOfSamplesU);
g_tTex2dmsf2 . GetDimensions(WidthU, HeightU, NumberOfSamplesU);
g_tTex2dmsf3 . GetDimensions(WidthU, HeightU, NumberOfSamplesU);
g_tTex2dmsf4 . GetDimensions(WidthU, HeightU, NumberOfSamplesU);
g_tTex2dmsf1 . Load(int2(1,2), 3);
g_tTex2dmsf2 . Load(int2(1,2), 3);
g_tTex2dmsf3 . Load(int2(1,2), 3);
g_tTex2dmsf4 . Load(int2(1,2), 3);
g_tTex2df1 . Sample(g_sSamp, float2(.1, .2));
g_tTex2df2 . Sample(g_sSamp, float2(.1, .2));
g_tTex2df3 . Sample(g_sSamp, float2(.1, .2));
g_tTex2df4 . Sample(g_sSamp, float2(.1, .2));
return 0;
}
...@@ -271,6 +271,7 @@ INSTANTIATE_TEST_CASE_P( ...@@ -271,6 +271,7 @@ INSTANTIATE_TEST_CASE_P(
{"hlsl.structin.vert", "main"}, {"hlsl.structin.vert", "main"},
{"hlsl.structIoFourWay.frag", "main"}, {"hlsl.structIoFourWay.frag", "main"},
{"hlsl.structStructName.frag", "main"}, {"hlsl.structStructName.frag", "main"},
{"hlsl.texture.subvec4.frag", "main"},
{"hlsl.this.frag", "main"}, {"hlsl.this.frag", "main"},
{"hlsl.intrinsics.vert", "VertexShaderFunction"}, {"hlsl.intrinsics.vert", "VertexShaderFunction"},
{"hlsl.intrinsic.frexp.vert", "VertexShaderFunction"}, {"hlsl.intrinsic.frexp.vert", "VertexShaderFunction"},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment