steve-lunarg | 7dfcf4d | 2016-07-31 10:37:02 -0600 | [diff] [blame] | 1 | SamplerComparisonState g_sSampCmp : register(s0); |
| 2 | |
| 3 | Texture1D g_tTex1df4a : register(t1); |
| 4 | |
| 5 | uniform Texture1D <float4> g_tTex1df4 : register(t0); |
| 6 | Texture1D <int4> g_tTex1di4; |
| 7 | Texture1D <uint4> g_tTex1du4; |
| 8 | |
| 9 | Texture2D <float4> g_tTex2df4; |
| 10 | Texture2D <int4> g_tTex2di4; |
| 11 | Texture2D <uint4> g_tTex2du4; |
| 12 | |
| 13 | Texture3D <float4> g_tTex3df4; |
| 14 | Texture3D <int4> g_tTex3di4; |
| 15 | Texture3D <uint4> g_tTex3du4; |
| 16 | |
| 17 | TextureCube <float4> g_tTexcdf4; |
| 18 | TextureCube <int4> g_tTexcdi4; |
| 19 | TextureCube <uint4> g_tTexcdu4; |
| 20 | |
| 21 | struct PS_OUTPUT |
| 22 | { |
| 23 | float4 Color : SV_Target0; |
| 24 | float Depth : SV_Depth; |
| 25 | }; |
| 26 | |
| 27 | uniform float c1; |
| 28 | uniform float2 c2; |
| 29 | uniform float3 c3; |
| 30 | uniform float4 c4; |
| 31 | |
| 32 | PS_OUTPUT main() |
| 33 | { |
| 34 | PS_OUTPUT psout; |
| 35 | |
| 36 | // no 1D gathers |
| 37 | |
| 38 | float4 txval00 = g_tTex2df4 . GatherCmpRed(g_sSampCmp, c2, 0.75); |
| 39 | int4 txval01 = g_tTex2di4 . GatherCmpRed(g_sSampCmp, c2, 0.75); |
| 40 | uint4 txval02 = g_tTex2du4 . GatherCmpRed(g_sSampCmp, c2, 0.75); |
| 41 | |
| 42 | float4 txval10 = g_tTex2df4 . GatherCmpGreen(g_sSampCmp, c2, 0.75); |
| 43 | int4 txval11 = g_tTex2di4 . GatherCmpGreen(g_sSampCmp, c2, 0.75); |
| 44 | uint4 txval12 = g_tTex2du4 . GatherCmpGreen(g_sSampCmp, c2, 0.75); |
| 45 | |
| 46 | float4 txval20 = g_tTex2df4 . GatherCmpBlue(g_sSampCmp, c2, 0.75); |
| 47 | int4 txval21 = g_tTex2di4 . GatherCmpBlue(g_sSampCmp, c2, 0.75); |
| 48 | uint4 txval22 = g_tTex2du4 . GatherCmpBlue(g_sSampCmp, c2, 0.75); |
| 49 | |
| 50 | float4 txval30 = g_tTex2df4 . GatherCmpAlpha(g_sSampCmp, c2, 0.75); |
| 51 | int4 txval31 = g_tTex2di4 . GatherCmpAlpha(g_sSampCmp, c2, 0.75); |
| 52 | uint4 txval32 = g_tTex2du4 . GatherCmpAlpha(g_sSampCmp, c2, 0.75); |
| 53 | |
steve-lunarg | 6817f81 | 2017-05-01 21:59:34 -0600 | [diff] [blame] | 54 | float4 txval80 = g_tTex2df4 . GatherCmp(g_sSampCmp, c2, 0.75); |
| 55 | int4 txval81 = g_tTex2di4 . GatherCmp(g_sSampCmp, c2, 0.75); |
| 56 | uint4 txval82 = g_tTex2du4 . GatherCmp(g_sSampCmp, c2, 0.75); |
| 57 | |
steve-lunarg | 7dfcf4d | 2016-07-31 10:37:02 -0600 | [diff] [blame] | 58 | // no 3D gathers |
| 59 | |
| 60 | float4 txval40 = g_tTexcdf4 . GatherCmpRed(g_sSampCmp, c3, 0.75); |
| 61 | int4 txval41 = g_tTexcdi4 . GatherCmpRed(g_sSampCmp, c3, 0.75); |
| 62 | uint4 txval42 = g_tTexcdu4 . GatherCmpRed(g_sSampCmp, c3, 0.75); |
| 63 | |
| 64 | float4 txval50 = g_tTexcdf4 . GatherCmpGreen(g_sSampCmp, c3, 0.75); |
| 65 | int4 txval51 = g_tTexcdi4 . GatherCmpGreen(g_sSampCmp, c3, 0.75); |
| 66 | uint4 txval52 = g_tTexcdu4 . GatherCmpGreen(g_sSampCmp, c3, 0.75); |
| 67 | |
| 68 | float4 txval60 = g_tTexcdf4 . GatherCmpBlue(g_sSampCmp, c3, 0.75); |
| 69 | int4 txval61 = g_tTexcdi4 . GatherCmpBlue(g_sSampCmp, c3, 0.75); |
| 70 | uint4 txval62 = g_tTexcdu4 . GatherCmpBlue(g_sSampCmp, c3, 0.75); |
| 71 | |
| 72 | float4 txval70 = g_tTexcdf4 . GatherCmpAlpha(g_sSampCmp, c3, 0.75); |
| 73 | int4 txval71 = g_tTexcdi4 . GatherCmpAlpha(g_sSampCmp, c3, 0.75); |
| 74 | uint4 txval72 = g_tTexcdu4 . GatherCmpAlpha(g_sSampCmp, c3, 0.75); |
| 75 | |
steve-lunarg | 6817f81 | 2017-05-01 21:59:34 -0600 | [diff] [blame] | 76 | float4 txval90 = g_tTexcdf4 . GatherCmp(g_sSampCmp, c3, 0.75); |
| 77 | int4 txval91 = g_tTexcdi4 . GatherCmp(g_sSampCmp, c3, 0.75); |
| 78 | uint4 txval92 = g_tTexcdu4 . GatherCmp(g_sSampCmp, c3, 0.75); |
| 79 | |
steve-lunarg | 7dfcf4d | 2016-07-31 10:37:02 -0600 | [diff] [blame] | 80 | psout.Color = 1.0; |
| 81 | psout.Depth = 1.0; |
| 82 | |
| 83 | return psout; |
| 84 | } |