From cea230bc686ef87db4cff47e367bbf824b90377d Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 3 Oct 2023 00:05:39 +0800 Subject: Use const ref for mesh payload (#3254) * Use const ref for mesh payload * Test mesh payload hlsl output --- tests/pipeline/rasterization/mesh/task-simple.slang | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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 verts, out Indices triangles) { -- cgit v1.2.3