mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-01 12:15:27 -06:00
d3d12: Fix for case where fragment shaders samples textures starting from non first unit.
This commit is contained in:
parent
ed3ac91263
commit
174fb97172
@ -157,7 +157,8 @@ struct D3D12Traits
|
|||||||
{
|
{
|
||||||
if (PT.type == "sampler2D")
|
if (PT.type == "sampler2D")
|
||||||
{
|
{
|
||||||
fragmentProgramData.m_textureCount++;
|
size_t texture_unit = atoi(PI.name.c_str() + 3);
|
||||||
|
fragmentProgramData.m_textureCount = std::max(texture_unit + 1, fragmentProgramData.m_textureCount);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
size_t offset = atoi(PI.name.c_str() + 2);
|
size_t offset = atoi(PI.name.c_str() + 2);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user