diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-10-29 14:49:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-29 14:49:26 +0800 |
| commit | f65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 (patch) | |
| tree | ea1d61342cd29368e19135000ec2948813096205 /source/slang/slang-spirv-val.cpp | |
| parent | a729c15e9dce9f5116a38afc66329ab2ca4cea54 (diff) | |
format
* format
* Minor test fixes
* enable checking cpp format in ci
Diffstat (limited to 'source/slang/slang-spirv-val.cpp')
| -rw-r--r-- | source/slang/slang-spirv-val.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/source/slang/slang-spirv-val.cpp b/source/slang/slang-spirv-val.cpp index 585ff5c94..e2b4da46c 100644 --- a/source/slang/slang-spirv-val.cpp +++ b/source/slang/slang-spirv-val.cpp @@ -20,23 +20,22 @@ SlangResult disassembleSPIRV(const List<uint8_t>& spirv, String& outErr, String& List<Byte> outData; List<Byte> outErrData; - SLANG_RETURN_ON_FAIL(StreamUtil::readAndWrite(in, spirv.getArrayView(), out, outData, err, outErrData)); + SLANG_RETURN_ON_FAIL( + StreamUtil::readAndWrite(in, spirv.getArrayView(), out, outData, err, outErrData)); SLANG_RETURN_ON_FAIL(p->waitForTermination(10)); outDis = String( reinterpret_cast<const char*>(outData.begin()), - reinterpret_cast<const char*>(outData.end()) - ); + reinterpret_cast<const char*>(outData.end())); outErr = String( reinterpret_cast<const char*>(outErrData.begin()), - reinterpret_cast<const char*>(outErrData.end()) - ); + reinterpret_cast<const char*>(outErrData.end())); const auto ret = p->getReturnValue(); return ret == 0 ? SLANG_OK : SLANG_FAIL; } -} +} // namespace Slang |
