diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-10-03 00:05:39 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-02 09:05:39 -0700 |
| commit | cea230bc686ef87db4cff47e367bbf824b90377d (patch) | |
| tree | 4a99efe2c4a3a04a47842ce07f05953f1b1b5880 /tests/pipeline | |
| parent | ccf2611c024ab12dcccd978f3f501d4ee9fc52bc (diff) | |
Use const ref for mesh payload (#3254)
* Use const ref for mesh payload
* Test mesh payload hlsl output
Diffstat (limited to 'tests/pipeline')
| -rw-r--r-- | tests/pipeline/rasterization/mesh/task-simple.slang | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/pipeline/rasterization/mesh/task-simple.slang b/tests/pipeline/rasterization/mesh/task-simple.slang index 67bd729b1..58ec9a527 100644 --- a/tests/pipeline/rasterization/mesh/task-simple.slang +++ b/tests/pipeline/rasterization/mesh/task-simple.slang @@ -1,5 +1,6 @@ //TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=CHECK): -task -output-using-type -dx12 -use-dxil -profile sm_6_6 -render-features mesh-shader //TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=CHECK): -task -output-using-type -vk -profile glsl_450+spirv_1_4 -render-features mesh-shader +//TEST:SIMPLE(filecheck=HLSL):-target hlsl -entry meshMain -stage mesh // To test a simple mesh shader, we'll generate 4 triangles, the vertices of // each one will hold the triangle index and a value (the square). The fragment @@ -69,6 +70,9 @@ const static uint MAX_PRIMS = 4; void meshMain( in uint tig : SV_GroupIndex, in payload MeshPayload meshPayload, + // Check that we correctly generate the specific 'in payload' that HLSL + // requires: + // HLSL: , in payload MeshPayload out Vertices<Vertex, MAX_VERTS> verts, out Indices<uint3, MAX_PRIMS> triangles) { |
