85 lines
2.8 KiB
GLSL
85 lines
2.8 KiB
GLSL
SamplerComparisonState g_sSampCmp : register(s0);
|
|
|
|
Texture1D g_tTex1df4a : register(t1);
|
|
|
|
uniform Texture1D <float4> g_tTex1df4 : register(t0);
|
|
Texture1D <int4> g_tTex1di4;
|
|
Texture1D <uint4> g_tTex1du4;
|
|
|
|
Texture2D <float4> g_tTex2df4;
|
|
Texture2D <int4> g_tTex2di4;
|
|
Texture2D <uint4> g_tTex2du4;
|
|
|
|
Texture3D <float4> g_tTex3df4;
|
|
Texture3D <int4> g_tTex3di4;
|
|
Texture3D <uint4> g_tTex3du4;
|
|
|
|
TextureCube <float4> g_tTexcdf4;
|
|
TextureCube <int4> g_tTexcdi4;
|
|
TextureCube <uint4> g_tTexcdu4;
|
|
|
|
struct PS_OUTPUT
|
|
{
|
|
float4 Color : SV_Target0;
|
|
float Depth : SV_Depth;
|
|
};
|
|
|
|
uniform float c1;
|
|
uniform float2 c2;
|
|
uniform float3 c3;
|
|
uniform float4 c4;
|
|
|
|
PS_OUTPUT main()
|
|
{
|
|
PS_OUTPUT psout;
|
|
|
|
// no 1D gathers
|
|
|
|
float4 txval00 = g_tTex2df4 . GatherCmpRed(g_sSampCmp, c2, 0.75);
|
|
int4 txval01 = g_tTex2di4 . GatherCmpRed(g_sSampCmp, c2, 0.75);
|
|
uint4 txval02 = g_tTex2du4 . GatherCmpRed(g_sSampCmp, c2, 0.75);
|
|
|
|
float4 txval10 = g_tTex2df4 . GatherCmpGreen(g_sSampCmp, c2, 0.75);
|
|
int4 txval11 = g_tTex2di4 . GatherCmpGreen(g_sSampCmp, c2, 0.75);
|
|
uint4 txval12 = g_tTex2du4 . GatherCmpGreen(g_sSampCmp, c2, 0.75);
|
|
|
|
float4 txval20 = g_tTex2df4 . GatherCmpBlue(g_sSampCmp, c2, 0.75);
|
|
int4 txval21 = g_tTex2di4 . GatherCmpBlue(g_sSampCmp, c2, 0.75);
|
|
uint4 txval22 = g_tTex2du4 . GatherCmpBlue(g_sSampCmp, c2, 0.75);
|
|
|
|
float4 txval30 = g_tTex2df4 . GatherCmpAlpha(g_sSampCmp, c2, 0.75);
|
|
int4 txval31 = g_tTex2di4 . GatherCmpAlpha(g_sSampCmp, c2, 0.75);
|
|
uint4 txval32 = g_tTex2du4 . GatherCmpAlpha(g_sSampCmp, c2, 0.75);
|
|
|
|
float4 txval80 = g_tTex2df4 . GatherCmp(g_sSampCmp, c2, 0.75);
|
|
int4 txval81 = g_tTex2di4 . GatherCmp(g_sSampCmp, c2, 0.75);
|
|
uint4 txval82 = g_tTex2du4 . GatherCmp(g_sSampCmp, c2, 0.75);
|
|
|
|
// no 3D gathers
|
|
|
|
float4 txval40 = g_tTexcdf4 . GatherCmpRed(g_sSampCmp, c3, 0.75);
|
|
int4 txval41 = g_tTexcdi4 . GatherCmpRed(g_sSampCmp, c3, 0.75);
|
|
uint4 txval42 = g_tTexcdu4 . GatherCmpRed(g_sSampCmp, c3, 0.75);
|
|
|
|
float4 txval50 = g_tTexcdf4 . GatherCmpGreen(g_sSampCmp, c3, 0.75);
|
|
int4 txval51 = g_tTexcdi4 . GatherCmpGreen(g_sSampCmp, c3, 0.75);
|
|
uint4 txval52 = g_tTexcdu4 . GatherCmpGreen(g_sSampCmp, c3, 0.75);
|
|
|
|
float4 txval60 = g_tTexcdf4 . GatherCmpBlue(g_sSampCmp, c3, 0.75);
|
|
int4 txval61 = g_tTexcdi4 . GatherCmpBlue(g_sSampCmp, c3, 0.75);
|
|
uint4 txval62 = g_tTexcdu4 . GatherCmpBlue(g_sSampCmp, c3, 0.75);
|
|
|
|
float4 txval70 = g_tTexcdf4 . GatherCmpAlpha(g_sSampCmp, c3, 0.75);
|
|
int4 txval71 = g_tTexcdi4 . GatherCmpAlpha(g_sSampCmp, c3, 0.75);
|
|
uint4 txval72 = g_tTexcdu4 . GatherCmpAlpha(g_sSampCmp, c3, 0.75);
|
|
|
|
float4 txval90 = g_tTexcdf4 . GatherCmp(g_sSampCmp, c3, 0.75);
|
|
int4 txval91 = g_tTexcdi4 . GatherCmp(g_sSampCmp, c3, 0.75);
|
|
uint4 txval92 = g_tTexcdu4 . GatherCmp(g_sSampCmp, c3, 0.75);
|
|
|
|
psout.Color = 1.0;
|
|
psout.Depth = 1.0;
|
|
|
|
return psout;
|
|
}
|