summaryrefslogtreecommitdiff
path: root/tests/front-end
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 /tests/front-end
parenta729c15e9dce9f5116a38afc66329ab2ca4cea54 (diff)
format
* format * Minor test fixes * enable checking cpp format in ci
Diffstat (limited to 'tests/front-end')
-rw-r--r--tests/front-end/parser-using-file-a.slang.h5
-rw-r--r--tests/front-end/pipeline-simple.slang.h37
2 files changed, 23 insertions, 19 deletions
diff --git a/tests/front-end/parser-using-file-a.slang.h b/tests/front-end/parser-using-file-a.slang.h
index becb69faa..8b381fd18 100644
--- a/tests/front-end/parser-using-file-a.slang.h
+++ b/tests/front-end/parser-using-file-a.slang.h
@@ -1,3 +1,6 @@
// this file exists to be included by "parser-using-file.slang"
-float a(float x) { return x * x; }
+float a(float x)
+{
+ return x * x;
+}
diff --git a/tests/front-end/pipeline-simple.slang.h b/tests/front-end/pipeline-simple.slang.h
index 6a6dc1b1c..261b581ea 100644
--- a/tests/front-end/pipeline-simple.slang.h
+++ b/tests/front-end/pipeline-simple.slang.h
@@ -5,37 +5,38 @@
pipeline StandardPipeline
{
- [Pinned]
- input world MeshVertex;
-
- world CoarseVertex;// : "glsl(vertex:projCoord)" using projCoord export standardExport;
- world Fragment;// : "glsl" export fragmentExport;
-
- require @CoarseVertex vec4 projCoord;
-
- [VertexInput]
- extern @CoarseVertex MeshVertex vertAttribIn;
+ [Pinned] input world MeshVertex;
+
+ world CoarseVertex; // : "glsl(vertex:projCoord)" using projCoord export standardExport;
+ world Fragment; // : "glsl" export fragmentExport;
+
+ require @CoarseVertex vec4 projCoord;
+
+ [VertexInput] extern @CoarseVertex MeshVertex vertAttribIn;
import(MeshVertex->CoarseVertex) vertexImport()
{
return project(vertAttribIn);
}
-
+
extern @Fragment CoarseVertex CoarseVertexIn;
import(CoarseVertex->Fragment) standardImport()
-// TODO(tfoley): this trait doesn't seem to be implemented on `vec3`
-// require trait IsTriviallyPassable(CoarseVertex)
+ // TODO(tfoley): this trait doesn't seem to be implemented on `vec3`
+ // require trait IsTriviallyPassable(CoarseVertex)
{
return project(CoarseVertexIn);
}
-
+
stage vs : VertexShader
{
- World: CoarseVertex;
- Position: projCoord;
+ World:
+ CoarseVertex;
+ Position:
+ projCoord;
}
-
+
stage fs : FragmentShader
{
- World: Fragment;
+ World:
+ Fragment;
}
} \ No newline at end of file