diff options
| author | Yong He <yonghe@outlook.com> | 2024-06-13 23:57:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-13 23:57:14 -0700 |
| commit | a210091c2c3eb572183b6e76ed4069347a5b6a99 (patch) | |
| tree | 38f4155c2ea0a5c848549b53095ea44ae8a86673 /source/slang/slang-parameter-binding.h | |
| parent | 2cc96907e4152291e0b6bca78a0bfbc69ddb8839 (diff) | |
[Metal] Support SV_TargetN. (#4390)
* [Metal] Support SV_TargetN.
* Fix.
Diffstat (limited to 'source/slang/slang-parameter-binding.h')
| -rw-r--r-- | source/slang/slang-parameter-binding.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/slang-parameter-binding.h b/source/slang/slang-parameter-binding.h index 139064680..3c0949e37 100644 --- a/source/slang/slang-parameter-binding.h +++ b/source/slang/slang-parameter-binding.h @@ -29,6 +29,14 @@ void generateParameterBindings( TargetRequest* targetReq, DiagnosticSink* sink); +/// Given a string that specifies a name and index (e.g., `COLOR0`), +/// split it into slices for the name part and the index part. +/// +void splitNameAndIndex( + UnownedStringSlice const& text, + UnownedStringSlice& outName, + UnownedStringSlice& outDigits); + } #endif |
