Skip to content

Commit

Permalink
Add more cases for isUniformParameterType. (#3800)
Browse files Browse the repository at this point in the history
  • Loading branch information
csyonghe authored Mar 20, 2024
1 parent 1ee1688 commit c2d4bcf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/slang/slang-check-shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ namespace Slang
return true;
if (as<SamplerStateType>(type))
return true;
if (auto arrayType = as<ArrayExpressionType>(type))
return isUniformParameterType(arrayType->getElementType());
if (auto modType = as<ModifiedType>(type))
return isUniformParameterType(modType->getBase());
return false;
}

Expand Down

0 comments on commit c2d4bcf

Please sign in to comment.