rsx: Add support shadow1D and shadowCube

This commit is contained in:
kd-11 2021-01-20 23:23:00 +03:00 committed by kd-11
parent b6b9085773
commit eb086b0e3f
6 changed files with 29 additions and 7 deletions

View file

@ -136,10 +136,14 @@ void GLFragmentDecompilerThread::insertConstants(std::stringstream & OS)
}
else if (properties.shadow_sampler_mask & mask)
{
if (properties.tex2d_sampler_mask & mask)
if (properties.common_access_sampler_mask & mask)
{
rsx_log.error("Texture unit %d is sampled as both a shadow texture and a depth texture", index);
}
else
samplerType = "sampler2DShadow";
{
samplerType += "Shadow";
}
}
OS << "uniform " << samplerType << " " << PI.name << ";\n";