You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
348 B
14 lines
348 B
|
|
Texture2D g_nonShadowTex;
|
|
Texture2D g_shadowTex;
|
|
SamplerState g_shadowSampler;
|
|
SamplerComparisonState g_shadowSamplerComp;
|
|
|
|
float4 main() : SV_Target0
|
|
{
|
|
g_shadowTex.SampleCmp(g_shadowSamplerComp, float2(0,0), 0); // OK
|
|
g_nonShadowTex.SampleCmp(g_shadowSampler, float2(0,0), 0); // ERROR (should be comparison sampler)
|
|
|
|
return 0;
|
|
}
|