diff options
| author | Yong He <yonghe@outlook.com> | 2023-08-31 15:02:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-31 15:02:16 -0700 |
| commit | b7d19330c2d42937835d674758a05af3891e025b (patch) | |
| tree | 13281b5fcc7b0b30d7e3a32088d74f5ad2187c40 /source/slang/slang-ir-inline.cpp | |
| parent | cc412af89e54b04ead508ca84825a18d001b92d0 (diff) | |
Inline all RayQuery/HitObject typed functions when targeting GLSL. (#3172)
* Inline all RayQuery/HitObject typed functions when targeting GLSL.
* update test.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-inline.cpp')
| -rw-r--r-- | source/slang/slang-ir-inline.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-ir-inline.cpp b/source/slang/slang-ir-inline.cpp index 5479a98ff..fd9ec495b 100644 --- a/source/slang/slang-ir-inline.cpp +++ b/source/slang/slang-ir-inline.cpp @@ -861,6 +861,8 @@ struct GLSLResourceReturnFunctionInliningPass : InliningPassBase auto outValueType = outType->getValueType(); if (isResourceType(outValueType)) return true; + if (isIllegalGLSLParameterType(outValueType)) + return true; } return false; } |
