diff options
| author | Yong He <yonghe@outlook.com> | 2022-02-17 01:15:05 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-17 01:15:05 -0800 |
| commit | e031e0e5fb05d024d56dc70c3dd4ef7111d98ba4 (patch) | |
| tree | 2a01bedb6db98d44fbcf402888595668d3bbb2fc /source/slang/slang-api.cpp | |
| parent | d4145519dd86f6d18b07393d989141bda4d4ceb3 (diff) | |
Add target option to force `scalar` layout for storage buffers. (#2135)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-api.cpp')
| -rw-r--r-- | source/slang/slang-api.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/slang-api.cpp b/source/slang/slang-api.cpp index e8e9b602d..ba0b4296a 100644 --- a/source/slang/slang-api.cpp +++ b/source/slang/slang-api.cpp @@ -269,6 +269,14 @@ SLANG_API void spSetLineDirectiveMode( request->setLineDirectiveMode(mode); } + +SLANG_API void spSetTargetForceGLSLScalarBufferLayout( + slang::ICompileRequest* request, int targetIndex, bool forceScalarLayout) +{ + SLANG_ASSERT(request); + request->setTargetForceGLSLScalarBufferLayout(targetIndex, forceScalarLayout); +} + SLANG_API void spSetTargetLineDirectiveMode( slang::ICompileRequest* request, int targetIndex, |
