summaryrefslogtreecommitdiffstats
path: root/tools/slang-unit-test/unit-test-fcpw-compile.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-10-29 14:49:26 +0800
committerGitHub <noreply@github.com>2024-10-29 14:49:26 +0800
commitf65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 (patch)
treeea1d61342cd29368e19135000ec2948813096205 /tools/slang-unit-test/unit-test-fcpw-compile.cpp
parenta729c15e9dce9f5116a38afc66329ab2ca4cea54 (diff)
format
* format * Minor test fixes * enable checking cpp format in ci
Diffstat (limited to 'tools/slang-unit-test/unit-test-fcpw-compile.cpp')
-rw-r--r--tools/slang-unit-test/unit-test-fcpw-compile.cpp21
1 files changed, 12 insertions, 9 deletions
diff --git a/tools/slang-unit-test/unit-test-fcpw-compile.cpp b/tools/slang-unit-test/unit-test-fcpw-compile.cpp
index 5e57ea55c..e36052b65 100644
--- a/tools/slang-unit-test/unit-test-fcpw-compile.cpp
+++ b/tools/slang-unit-test/unit-test-fcpw-compile.cpp
@@ -1,15 +1,14 @@
// unit-test-fcpw-compile.cpp
+#include "../../source/core/slang-io.h"
+#include "../../source/core/slang-process.h"
+#include "slang-com-ptr.h"
#include "slang.h"
+#include "tools/unit-test/slang-unit-test.h"
#include <stdio.h>
#include <stdlib.h>
-#include "tools/unit-test/slang-unit-test.h"
-#include "slang-com-ptr.h"
-#include "../../source/core/slang-io.h"
-#include "../../source/core/slang-process.h"
-
using namespace Slang;
// A test that uses the COM API to load and compile the FCPW library written by
@@ -35,7 +34,8 @@ SLANG_UNIT_TEST(fcpwCompile)
SLANG_CHECK(globalSession->createSession(sessionDesc, session.writeRef()) == SLANG_OK);
ComPtr<slang::IBlob> diagnosticBlob;
- auto module = session->loadModule("tests/fcpw/bvh-traversal.cs.slang", diagnosticBlob.writeRef());
+ auto module =
+ session->loadModule("tests/fcpw/bvh-traversal.cs.slang", diagnosticBlob.writeRef());
SLANG_CHECK(module != nullptr);
ComPtr<slang::IEntryPoint> entryPoint;
@@ -43,8 +43,12 @@ SLANG_UNIT_TEST(fcpwCompile)
SLANG_CHECK(entryPoint != nullptr);
ComPtr<slang::IComponentType> compositeProgram;
- slang::IComponentType* components[] = { module, entryPoint.get() };
- session->createCompositeComponentType(components, 2, compositeProgram.writeRef(), diagnosticBlob.writeRef());
+ slang::IComponentType* components[] = {module, entryPoint.get()};
+ session->createCompositeComponentType(
+ components,
+ 2,
+ compositeProgram.writeRef(),
+ diagnosticBlob.writeRef());
SLANG_CHECK(compositeProgram != nullptr);
ComPtr<slang::IComponentType> linkedProgram;
@@ -56,4 +60,3 @@ SLANG_UNIT_TEST(fcpwCompile)
SLANG_CHECK(code != nullptr);
SLANG_CHECK(code->getBufferSize() != 0);
}
-