From a210091c2c3eb572183b6e76ed4069347a5b6a99 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 13 Jun 2024 23:57:14 -0700 Subject: [Metal] Support SV_TargetN. (#4390) * [Metal] Support SV_TargetN. * Fix. --- source/slang/slang-parameter-binding.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/slang/slang-parameter-binding.h') 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 -- cgit v1.2.3