mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
rsx: Add support shadow1D and shadowCube
This commit is contained in:
parent
b6b9085773
commit
eb086b0e3f
6 changed files with 29 additions and 7 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue