1SamplerState g_sSamp : register(s0); 2uniform sampler2D g_sSamp2d; 3 4uniform Texture1DArray <float4> g_tTex1df4a : register(t0); 5Texture1DArray <int4> g_tTex1di4a; 6Texture1DArray <uint4> g_tTex1du4a; 7 8Texture2DArray <float4> g_tTex2df4a; 9Texture2DArray <int4> g_tTex2di4a; 10Texture2DArray <uint4> g_tTex2du4a; 11 12TextureCubeArray <float4> g_tTexcdf4a; 13TextureCubeArray <int4> g_tTexcdi4a; 14TextureCubeArray <uint4> g_tTexcdu4a; 15 16struct PS_OUTPUT 17{ 18 float4 Color : SV_Target0; 19 float Depth : SV_Depth; 20}; 21 22uniform float c1; 23uniform float2 c2; 24uniform float3 c3; 25uniform float4 c4; 26 27PS_OUTPUT main() 28{ 29 PS_OUTPUT psout; 30 31 // no 1D gathers 32 33 float4 txval00 = g_tTex2df4a . GatherRed(g_sSamp, c3); 34 int4 txval01 = g_tTex2di4a . GatherRed(g_sSamp, c3); 35 uint4 txval02 = g_tTex2du4a . GatherRed(g_sSamp, c3); 36 37 float4 txval10 = g_tTex2df4a . GatherGreen(g_sSamp, c3); 38 int4 txval11 = g_tTex2di4a . GatherGreen(g_sSamp, c3); 39 uint4 txval12 = g_tTex2du4a . GatherGreen(g_sSamp, c3); 40 41 float4 txval20 = g_tTex2df4a . GatherBlue(g_sSamp, c3); 42 int4 txval21 = g_tTex2di4a . GatherBlue(g_sSamp, c3); 43 uint4 txval22 = g_tTex2du4a . GatherBlue(g_sSamp, c3); 44 45 float4 txval30 = g_tTex2df4a . GatherAlpha(g_sSamp, c3); 46 int4 txval31 = g_tTex2di4a . GatherAlpha(g_sSamp, c3); 47 uint4 txval32 = g_tTex2du4a . GatherAlpha(g_sSamp, c3); 48 49 // no 3D gathers 50 51 float4 txval40 = g_tTexcdf4a . GatherRed(g_sSamp, c4); 52 int4 txval41 = g_tTexcdi4a . GatherRed(g_sSamp, c4); 53 uint4 txval42 = g_tTexcdu4a . GatherRed(g_sSamp, c4); 54 55 float4 txval50 = g_tTexcdf4a . GatherGreen(g_sSamp, c4); 56 int4 txval51 = g_tTexcdi4a . GatherGreen(g_sSamp, c4); 57 uint4 txval52 = g_tTexcdu4a . GatherGreen(g_sSamp, c4); 58 59 float4 txval60 = g_tTexcdf4a . GatherBlue(g_sSamp, c4); 60 int4 txval61 = g_tTexcdi4a . GatherBlue(g_sSamp, c4); 61 uint4 txval62 = g_tTexcdu4a . GatherBlue(g_sSamp, c4); 62 63 float4 txval70 = g_tTexcdf4a . GatherAlpha(g_sSamp, c4); 64 int4 txval71 = g_tTexcdi4a . GatherAlpha(g_sSamp, c4); 65 uint4 txval72 = g_tTexcdu4a . GatherAlpha(g_sSamp, c4); 66 67 psout.Color = 1.0; 68 psout.Depth = 1.0; 69 70 return psout; 71} 72