From f65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 29 Oct 2024 14:49:26 +0800 Subject: format * format * Minor test fixes * enable checking cpp format in ci --- tools/gfx/cuda/cuda-helper-functions.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'tools/gfx/cuda/cuda-helper-functions.cpp') diff --git a/tools/gfx/cuda/cuda-helper-functions.cpp b/tools/gfx/cuda/cuda-helper-functions.cpp index d478e8815..9fb69d620 100644 --- a/tools/gfx/cuda/cuda-helper-functions.cpp +++ b/tools/gfx/cuda/cuda-helper-functions.cpp @@ -24,7 +24,9 @@ SlangResult CUDAErrorInfo::handle() const builder << m_errorString; } - getDebugCallback()->handleMessage(DebugMessageType::Error, DebugMessageSource::Driver, + getDebugCallback()->handleMessage( + DebugMessageType::Error, + DebugMessageSource::Driver, builder.getUnownedSlice().begin()); // Slang::signalUnexpectedError(builder.getBuffer()); @@ -39,14 +41,14 @@ SlangResult _handleCUDAError(CUresult cuResult, const char* file, int line) return info.handle(); } -# ifdef RENDER_TEST_OPTIX +#ifdef RENDER_TEST_OPTIX static bool _isError(OptixResult result) { return result != OPTIX_SUCCESS; } -# if 1 +#if 1 static SlangResult _handleOptixError(OptixResult result, char const* file, int line) { fprintf( @@ -63,8 +65,8 @@ void _optixLogCallback(unsigned int level, const char* tag, const char* message, { fprintf(stderr, "optix: %s (%s)\n", message, tag); } -# endif -# endif +#endif +#endif AdapterLUID getAdapterLUID(int deviceIndex) { -- cgit v1.2.3