From 4a23ba5293916795741479c55c5d0ecc597f8986 Mon Sep 17 00:00:00 2001 From: Pankaj Mistry <63069047+pmistryNV@users.noreply.github.com> Date: Sun, 7 Apr 2024 14:32:19 -0700 Subject: Add decoration PerPrimitiveEXT for all OutputPrimitives members for mesh (#3900) --- tests/pipeline/rasterization/mesh/mesh-PerPrimitiveEXT.slang | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/pipeline/rasterization/mesh/mesh-PerPrimitiveEXT.slang b/tests/pipeline/rasterization/mesh/mesh-PerPrimitiveEXT.slang index bf46cce63..4294314a6 100644 --- a/tests/pipeline/rasterization/mesh/mesh-PerPrimitiveEXT.slang +++ b/tests/pipeline/rasterization/mesh/mesh-PerPrimitiveEXT.slang @@ -4,6 +4,9 @@ // CHECK: OpDecorate %gl_PrimitiveID BuiltIn PrimitiveId // CHECK: OpDecorate %gl_PrimitiveID PerPrimitiveNV +// CHECK: OpDecorate {{.*}} BuiltIn CullPrimitiveEXT +// CHECK: OpDecorate {{.*}} PerPrimitiveNV + const static let color: float3[] = { float3(1.0, 0.0, 0.0), float3(0.0, 1.0, 0.0), @@ -23,6 +26,7 @@ struct SVertexOutput { struct SPrimitiveOutput { uint PrimitiveId: SV_PrimitiveID; + bool cull : SV_CullPrimitive; }; [shader("mesh")] @@ -39,6 +43,6 @@ func main( outputVertices[2] = { float4(position[2], 1.0), color[2] }; outputIndices[0] = uint3(0, 1, 2); - outputPrimitives[0] = { 0 }; + outputPrimitives[0] = { 0, false }; } -- cgit v1.2.3